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:
parent
af06e03b71
commit
b26928878f
25 changed files with 77 additions and 114 deletions
|
@ -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:
|
||||
|
|
|
@ -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)
|
Loading…
Add table
Add a link
Reference in a new issue