2020-09-30 14:13:53 +00:00
|
|
|
"""Describe group states."""
|
|
|
|
|
|
|
|
|
|
|
|
from homeassistant.components.group import GroupIntegrationRegistry
|
|
|
|
from homeassistant.const import STATE_HOME, STATE_NOT_HOME
|
2021-04-22 18:23:19 +00:00
|
|
|
from homeassistant.core import HomeAssistant, callback
|
2020-09-30 14:13:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
@callback
|
|
|
|
def async_describe_on_off_states(
|
2021-04-22 18:23:19 +00:00
|
|
|
hass: HomeAssistant, registry: GroupIntegrationRegistry
|
2020-09-30 14:13:53 +00:00
|
|
|
) -> None:
|
|
|
|
"""Describe group on off states."""
|
|
|
|
registry.on_off_states({STATE_HOME}, STATE_NOT_HOME)
|