2020-09-30 14:13:53 +00:00
|
|
|
"""Describe group states."""
|
|
|
|
|
|
|
|
|
|
|
|
from homeassistant.components.group import GroupIntegrationRegistry
|
|
|
|
from homeassistant.const import (
|
|
|
|
STATE_ALARM_ARMED_AWAY,
|
|
|
|
STATE_ALARM_ARMED_CUSTOM_BYPASS,
|
|
|
|
STATE_ALARM_ARMED_HOME,
|
|
|
|
STATE_ALARM_ARMED_NIGHT,
|
2021-07-01 15:26:32 +00:00
|
|
|
STATE_ALARM_ARMED_VACATION,
|
2020-09-30 14:13:53 +00:00
|
|
|
STATE_ALARM_TRIGGERED,
|
|
|
|
STATE_OFF,
|
|
|
|
)
|
2021-03-29 23:24:36 +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:36 +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_ALARM_ARMED_AWAY,
|
|
|
|
STATE_ALARM_ARMED_CUSTOM_BYPASS,
|
|
|
|
STATE_ALARM_ARMED_HOME,
|
|
|
|
STATE_ALARM_ARMED_NIGHT,
|
2021-07-01 15:26:32 +00:00
|
|
|
STATE_ALARM_ARMED_VACATION,
|
2020-09-30 14:13:53 +00:00
|
|
|
STATE_ALARM_TRIGGERED,
|
|
|
|
},
|
|
|
|
STATE_OFF,
|
|
|
|
)
|