Refactor group to extend domains that can be grouped (#40607)

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
This commit is contained in:
J. Nick Koston 2020-09-30 09:13:53 -05:00 committed by GitHub
parent e7d8742771
commit 9ccebdb8d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 1006 additions and 210 deletions

View file

@ -0,0 +1,14 @@
"""Describe group states."""
from homeassistant.components.group import GroupIntegrationRegistry
from homeassistant.core import callback
from homeassistant.helpers.typing import HomeAssistantType
@callback
def async_describe_on_off_states(
hass: HomeAssistantType, registry: GroupIntegrationRegistry
) -> None:
"""Describe group on off states."""
registry.exclude_domain()