Functions | |
| bool | _values_equal (Iterator[Any] values) |
| bool | attribute_equal (list[State] states, str key) |
| Iterator[Any] | find_state (list[State] states) |
| Iterator[Any] | find_state_attributes (list[State] states, str key) |
| int | mean_int (*Any args) |
| tuple[float|Any,...] | mean_tuple (*Any args) |
| Any|None | most_frequent_attribute (list[State] states, str key) |
| Any | reduce_attribute (list[State] states, str key, Any|None default=None, Callable[..., Any] reduce=mean_int) |
| bool | states_equal (list[State] states) |
Utility functions to combine state attributes from multiple entities.
|
private |
| bool homeassistant.components.group.util.attribute_equal | ( | list[State] | states, |
| str | key | ||
| ) |
| Iterator[Any] homeassistant.components.group.util.find_state | ( | list[State] | states | ) |
| Iterator[Any] homeassistant.components.group.util.find_state_attributes | ( | list[State] | states, |
| str | key | ||
| ) |
| int homeassistant.components.group.util.mean_int | ( | *Any | args | ) |
| tuple[float | Any, ...] homeassistant.components.group.util.mean_tuple | ( | *Any | args | ) |
| Any | None homeassistant.components.group.util.most_frequent_attribute | ( | list[State] | states, |
| str | key | ||
| ) |