@@ -405,17 +405,19 @@ async def startup(self, auto_form=False):
405
405
c .AF .Delete .Req (Endpoint = endpoint ), RspStatus = t .Status .SUCCESS
406
406
)
407
407
408
- # Register our endpoints
409
- await self ._register_endpoint (endpoint = 1 )
410
408
await self ._register_endpoint (
411
- endpoint = 8 ,
412
- device_id = zigpy .profiles .zha .DeviceType . IAS_CONTROL ,
413
- output_clusters = [clusters .security . IasZone .cluster_id ],
409
+ endpoint = 1 ,
410
+ profile_id = zigpy .profiles .zha .PROFILE_ID ,
411
+ input_clusters = [clusters .general . Ota .cluster_id ],
414
412
)
415
- await self ._register_endpoint (endpoint = 11 )
416
- await self ._register_endpoint (endpoint = 12 )
413
+
417
414
await self ._register_endpoint (
418
- endpoint = 13 , input_clusters = [clusters .general .Ota .cluster_id ]
415
+ endpoint = 2 ,
416
+ device_id = zigpy .profiles .zha .DeviceType .IAS_CONTROL ,
417
+ output_clusters = [
418
+ clusters .security .IasZone .cluster_id ,
419
+ clusters .security .IasWd .cluster_id ,
420
+ ],
419
421
)
420
422
421
423
await self ._register_endpoint (
@@ -540,7 +542,7 @@ async def form_network(self):
540
542
reset = False ,
541
543
)
542
544
543
- # We want to receive all ZDO callbacks to proxy them back go zipgy
545
+ # We want to receive all ZDO callbacks to proxy them back to zipgy
544
546
await self ._znp .nvram_write (NwkNvIds .ZDO_DIRECT_CB , t .Bool (True ))
545
547
546
548
# Reset now so that the changes take effect
0 commit comments