Remove area_id from entity_registry.async_get_or_create, closes #356

This commit is contained in:
Bas Nijholt 2022-11-06 15:11:17 -08:00
commit 70899dfe22

View file

@ -878,7 +878,10 @@ async def test_area(hass):
area_registry.async_create("test_area")
entity = entity_registry.async_get(hass).async_get_or_create(
LIGHT_DOMAIN, "demo", light.unique_id, area_id="test_area"
LIGHT_DOMAIN, "demo", light.unique_id
)
entity = entity_registry.async_get(hass).async_update_entity(
entity.entity_id, area_id="test_area"
)
_LOGGER.debug("test_area entity: %s", entity)
await hass.services.async_call(