File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 77
88import zigpy .util
99import zigpy .types
10+ import zigpy .device
1011import zigpy .config
1112import zigpy .application
1213import zigpy .profiles
@@ -453,6 +454,9 @@ async def startup(self, auto_form=False):
453454 self .channel ,
454455 )
455456
457+ # Add the coordinator as a device to make groups work
458+ self .devices [self .ieee ] = ZNPCoordinator (self , self .ieee , self .nwk )
459+
456460 async def update_network (
457461 self ,
458462 * ,
@@ -828,3 +832,13 @@ async def permit_ncp(self, time_s: int) -> None:
828832
829833 if response .Status != t .Status .SUCCESS :
830834 raise RuntimeError (f"Permit join response failure: { response } " )
835+
836+
837+ class ZNPCoordinator (zigpy .device .Device ):
838+ @property
839+ def manufacturer (self ):
840+ return "Texas Instruments"
841+
842+ @property
843+ def model (self ):
844+ return "ZNP Coordinator"
You can’t perform that action at this time.
0 commit comments