2020-09-30 14:13:53 +00:00
|
|
|
"""Describe group states."""
|
|
|
|
|
|
|
|
|
|
|
|
from homeassistant.components.group import GroupIntegrationRegistry
|
|
|
|
from homeassistant.const import STATE_OFF, STATE_ON
|
2021-03-29 23:24:56 +00:00
|
|
|
from homeassistant.core import HomeAssistant, callback
|
2020-09-30 14:13:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
@callback
|
|
|
|
def async_describe_on_off_states(
|
2021-03-29 23:24:56 +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_ON}, STATE_OFF)
|