mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 14:27:07 +00:00
Use core constants for group component (#46239)
This commit is contained in:
parent
c0a1fc2916
commit
00bbf8c3a2
@ -13,6 +13,7 @@ from homeassistant.const import (
|
||||
ATTR_ENTITY_ID,
|
||||
ATTR_ICON,
|
||||
ATTR_NAME,
|
||||
CONF_ENTITIES,
|
||||
CONF_ICON,
|
||||
CONF_NAME,
|
||||
ENTITY_MATCH_ALL,
|
||||
@ -41,7 +42,6 @@ GROUP_ORDER = "group_order"
|
||||
|
||||
ENTITY_ID_FORMAT = DOMAIN + ".{}"
|
||||
|
||||
CONF_ENTITIES = "entities"
|
||||
CONF_ALL = "all"
|
||||
|
||||
ATTR_ADD_ENTITIES = "add_entities"
|
||||
@ -345,7 +345,6 @@ async def async_setup(hass, config):
|
||||
|
||||
async def _process_group_platform(hass, domain, platform):
|
||||
"""Process a group platform."""
|
||||
|
||||
current_domain.set(domain)
|
||||
platform.async_describe_on_off_states(hass, hass.data[REG_KEY])
|
||||
|
||||
|
@ -16,7 +16,6 @@ async def async_reproduce_states(
|
||||
reproduce_options: Optional[Dict[str, Any]] = None,
|
||||
) -> None:
|
||||
"""Reproduce component states."""
|
||||
|
||||
states_copy = []
|
||||
for state in states:
|
||||
members = get_entity_ids(hass, state.entity_id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user