Skip to content

Commit 51255ee

Browse files
authored
Adjust NodeDescriptor & fix hanging ZHA (#116)
* Set NodeDescriptor to mimic Coordinator instead of Router * Avoid hanging ZHA due to uncommited INSERT INTO devices
1 parent 07fc53e commit 51255ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zigpy_xbee/zigbee/application.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ async def startup(self, auto_form=False):
108108
dev = zigpy.device.Device(self, self.ieee, self.nwk)
109109
dev.status = zigpy.device.Status.ENDPOINTS_INIT
110110
dev.add_endpoint(XBEE_ENDPOINT_ID)
111-
self.listener_event("raw_device_initialized", dev)
112111
xbee_dev = XBeeCoordinator(self, self.ieee, self.nwk, dev)
112+
self.listener_event("raw_device_initialized", xbee_dev)
113113
self.devices[dev.ieee] = xbee_dev
114114

115115
async def force_remove(self, dev):
@@ -383,7 +383,7 @@ class XBeeGroupResponse(zigpy.quirks.CustomCluster, Groups):
383383
def __init__(self, *args, **kwargs):
384384
super().__init__(*args, **kwargs)
385385
self.node_desc = NodeDescriptor(
386-
0x01, 0x40, 0x8E, 0x101E, 0x52, 0x00FF, 0x2C00, 0x00FF, 0x00
386+
0x00, 0x40, 0x8E, 0x101E, 0x52, 0x00FF, 0x2C00, 0x00FF, 0x00
387387
)
388388

389389
replacement = {

0 commit comments

Comments
 (0)