2020-10-09 06:37:27 +00:00
|
|
|
"""Describe group states."""
|
|
|
|
|
|
|
|
|
|
|
|
from homeassistant.components.group import GroupIntegrationRegistry
|
|
|
|
from homeassistant.const import STATE_OK, STATE_PROBLEM
|
2021-04-22 18:23:19 +00:00
|
|
|
from homeassistant.core import HomeAssistant, callback
|
2020-10-09 06:37:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
@callback
|
|
|
|
def async_describe_on_off_states(
|
2021-04-22 18:23:19 +00:00
|
|
|
hass: HomeAssistant, registry: GroupIntegrationRegistry
|
2020-10-09 06:37:27 +00:00
|
|
|
) -> None:
|
|
|
|
"""Describe group on off states."""
|
|
|
|
registry.on_off_states({STATE_PROBLEM}, STATE_OK)
|