Merge pull request #357 from basnijholt/no-aread

Remove area_id from entity_registry.async_get_or_create, closes #356
This commit is contained in:
Bas Nijholt 2022-11-06 15:18:21 -08:00 committed by GitHub
commit 1464c39004
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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(