2020-09-30 14:13:53 +00:00
|
|
|
"""Describe group states."""
|
|
|
|
|
|
|
|
|
|
|
|
from homeassistant.components.group import GroupIntegrationRegistry
|
|
|
|
from homeassistant.const import STATE_LOCKED, STATE_UNLOCKED
|
2021-04-23 07:55:20 +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-23 07:55:20 +00:00
|
|
|
hass: HomeAssistant, registry: GroupIntegrationRegistry
|
2020-09-30 14:13:53 +00:00
|
|
|
) -> None:
|
|
|
|
"""Describe group on off states."""
|
2021-12-22 11:14:45 +00:00
|
|
|
registry.on_off_states({STATE_UNLOCKED}, STATE_LOCKED)
|