mirror of
https://github.com/home-assistant/core.git
synced 2025-09-07 22:01:34 +02:00
Fix for bosch_shc: 'device_registry.async_get_or_create' referencing a non existing 'via_device' (#150756)
This commit is contained in:
@@ -69,12 +69,7 @@ class SHCEntity(SHCBaseEntity):
|
|||||||
manufacturer=device.manufacturer,
|
manufacturer=device.manufacturer,
|
||||||
model=device.device_model,
|
model=device.device_model,
|
||||||
name=device.name,
|
name=device.name,
|
||||||
via_device=(
|
via_device=(DOMAIN, device.root_device_id),
|
||||||
DOMAIN,
|
|
||||||
device.parent_device_id
|
|
||||||
if device.parent_device_id is not None
|
|
||||||
else parent_id,
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
super().__init__(device=device, parent_id=parent_id, entry_id=entry_id)
|
super().__init__(device=device, parent_id=parent_id, entry_id=entry_id)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user