Fix incorrect device registry call in Notion (#35306)
This commit is contained in:
@@ -302,7 +302,9 @@ class NotionEntity(Entity):
|
||||
bridge_device = device_registry.async_get_device(
|
||||
{DOMAIN: bridge["hardware_id"]}, set()
|
||||
)
|
||||
this_device = device_registry.async_get_device({DOMAIN: sensor["hardware_id"]})
|
||||
this_device = device_registry.async_get_device(
|
||||
{DOMAIN: sensor["hardware_id"]}, set()
|
||||
)
|
||||
|
||||
device_registry.async_update_device(
|
||||
this_device.id, via_device_id=bridge_device.id
|
||||
|
||||
Reference in New Issue
Block a user