Classes | |
| class | ColorModeAttr |
Functions | |
| None | _async_reproduce_state (HomeAssistant hass, State state, *Context|None context=None, dict[str, Any]|None reproduce_options=None) |
| bool | _color_mode_same (State cur_state, State state) |
| None | async_reproduce_states (HomeAssistant hass, Iterable[State] states, *Context|None context=None, dict[str, Any]|None reproduce_options=None) |
| bool | check_attr_equal (Mapping attr1, Mapping attr2, str attr_str) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| list | ATTR_GROUP = [ATTR_BRIGHTNESS, ATTR_EFFECT] |
| list | COLOR_GROUP |
| dictionary | COLOR_MODE_TO_ATTRIBUTE |
| dictionary | VALID_STATES = {STATE_ON, STATE_OFF} |
Reproduce an Light state.
|
private |
Reproduce a single state.
Definition at line 80 of file reproduce_state.py.
|
private |
Test if color_mode is same.
Definition at line 69 of file reproduce_state.py.
| None homeassistant.components.light.reproduce_state.async_reproduce_states | ( | HomeAssistant | hass, |
| Iterable[State] | states, | ||
| *Context | None | context = None, |
||
| dict[str, Any] | None | reproduce_options = None |
||
| ) |
Reproduce Light states.
Definition at line 151 of file reproduce_state.py.
| bool homeassistant.components.light.reproduce_state.check_attr_equal | ( | Mapping | attr1, |
| Mapping | attr2, | ||
| str | attr_str | ||
| ) |
Return true if the given attributes are equal.
Definition at line 169 of file reproduce_state.py.
|
private |
Definition at line 35 of file reproduce_state.py.
| list homeassistant.components.light.reproduce_state.ATTR_GROUP = [ATTR_BRIGHTNESS, ATTR_EFFECT] |
Definition at line 39 of file reproduce_state.py.
| list homeassistant.components.light.reproduce_state.COLOR_GROUP |
Definition at line 41 of file reproduce_state.py.
| dictionary homeassistant.components.light.reproduce_state.COLOR_MODE_TO_ATTRIBUTE |
Definition at line 58 of file reproduce_state.py.
| dictionary homeassistant.components.light.reproduce_state.VALID_STATES = {STATE_ON, STATE_OFF} |
Definition at line 37 of file reproduce_state.py.