Use core constants for group component (#46239)

This commit is contained in:
tkdrob 2021-02-08 16:52:28 -05:00 committed by GitHub
parent c0a1fc2916
commit 00bbf8c3a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View File

@ -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])

View File

@ -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)