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 7
7
8
8
import zigpy .util
9
9
import zigpy .types
10
+ import zigpy .device
10
11
import zigpy .config
11
12
import zigpy .application
12
13
import zigpy .profiles
@@ -453,6 +454,9 @@ async def startup(self, auto_form=False):
453
454
self .channel ,
454
455
)
455
456
457
+ # Add the coordinator as a device to make groups work
458
+ self .devices [self .ieee ] = ZNPCoordinator (self , self .ieee , self .nwk )
459
+
456
460
async def update_network (
457
461
self ,
458
462
* ,
@@ -828,3 +832,13 @@ async def permit_ncp(self, time_s: int) -> None:
828
832
829
833
if response .Status != t .Status .SUCCESS :
830
834
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