Remove group integration platforms that use the default states (#113562)

Remove group integration platforms that use the default

There is no need to register platforms that use the defaults
as the group code already uses STATE_ON/STATE_OFF when there
are no on/off states in the GroupIntegrationRegistry
This commit is contained in:
J. Nick Koston 2024-03-15 14:51:21 -10:00 committed by GitHub
parent af06e03b71
commit b26928878f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 77 additions and 114 deletions

View file

@ -34,8 +34,6 @@ from homeassistant.helpers.typing import ConfigType
from homeassistant.loader import bind_hass
import homeassistant.util.color as color_util
from . import group as group_pre_import # noqa: F401
if TYPE_CHECKING:
from functools import cached_property
else:

View file

@ -1,13 +0,0 @@
"""Describe group states."""
from homeassistant.components.group import GroupIntegrationRegistry
from homeassistant.const import STATE_OFF, STATE_ON
from homeassistant.core import HomeAssistant, callback
@callback
def async_describe_on_off_states(
hass: HomeAssistant, registry: GroupIntegrationRegistry
) -> None:
"""Describe group on off states."""
registry.on_off_states({STATE_ON}, STATE_OFF)