mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Pick right coordinator (#55555)
This commit is contained in:
parent
6b4f2e6f8f
commit
cb1e0666c8
@ -174,7 +174,7 @@ class ZHAGateway:
|
|||||||
"""Restore ZHA devices from zigpy application state."""
|
"""Restore ZHA devices from zigpy application state."""
|
||||||
for zigpy_device in self.application_controller.devices.values():
|
for zigpy_device in self.application_controller.devices.values():
|
||||||
zha_device = self._async_get_or_create_device(zigpy_device, restored=True)
|
zha_device = self._async_get_or_create_device(zigpy_device, restored=True)
|
||||||
if zha_device.nwk == 0x0000:
|
if zha_device.ieee == self.application_controller.ieee:
|
||||||
self.coordinator_zha_device = zha_device
|
self.coordinator_zha_device = zha_device
|
||||||
zha_dev_entry = self.zha_storage.devices.get(str(zigpy_device.ieee))
|
zha_dev_entry = self.zha_storage.devices.get(str(zigpy_device.ieee))
|
||||||
delta_msg = "not known"
|
delta_msg = "not known"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user