mirror of
https://github.com/home-assistant/core.git
synced 2026-08-24 10:13:52 -05:00
Adapt acmeda to new device registry API (#176933)
This commit is contained in:
@@ -48,7 +48,9 @@ async def update_devices(
|
||||
|
||||
for api_item in api.values():
|
||||
# Update Device name
|
||||
device = dev_registry.async_get_device(identifiers={(DOMAIN, api_item.id)})
|
||||
device = dev_registry.async_get_device_by_identifier(
|
||||
(DOMAIN, api_item.id), config_entry.entry_id
|
||||
)
|
||||
if device is not None:
|
||||
dev_registry.async_update_device(
|
||||
device.id,
|
||||
|
||||
Reference in New Issue
Block a user