Clean up entity component (#11691)
* Clean up entity component * Lint * List -> Tuple * Add Entity.async_remove back * Unflake setting up group test
This commit is contained in:
parent
d478517c51
commit
183e0543b4
14 changed files with 230 additions and 191 deletions
|
@ -161,7 +161,7 @@ def async_setup(hass, config):
|
|||
face.store.pop(g_id)
|
||||
|
||||
entity = entities.pop(g_id)
|
||||
yield from entity.async_remove()
|
||||
hass.states.async_remove(entity.entity_id)
|
||||
except HomeAssistantError as err:
|
||||
_LOGGER.error("Can't delete group '%s' with error: %s", g_id, err)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue