mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-11 14:24:03 +02:00
Remove area_id from entity_registry.async_get_or_create, closes #356
This commit is contained in:
parent
4631955360
commit
70899dfe22
1 changed files with 4 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue