Group by endpoints and not by devices for ZHA Zigbee groups (#34583)
* start implementation * handle members correctly * fix group member info * align groupable devices with group members * handle group endpoint adding and removing * update add group * update group and group member * update create group * remove domain check * update test * remove temporary 2nd groupable device api * update test * rename validator - review comment * fix test that was never running * additional testing * fix coordinator descriptors * remove check that was done twice * update test * Use AsyncMock() Co-authored-by: Alexei Chetroi <lexoid@gmail.com>
This commit is contained in:
1 parent
e54e9279e3
commit
8279efc164
11 files changed
+438
-167
No files matched your search
@@ -32,7 +32,7 @@ class FakeEndpoint:
|
||||
self.model = model
|
||||
self.profile_id = zigpy.profiles.zha.PROFILE_ID
|
||||
self.device_type = None
|
||||
self.request = AsyncMock()
|
||||
self.request = AsyncMock(return_value=[0])
|
||||
|
||||
def add_input_cluster(self, cluster_id):
|
||||
"""Add an input cluster."""
|
||||
@@ -60,6 +60,7 @@ class FakeEndpoint:
|
||||
|
||||
|
||||
FakeEndpoint.add_to_group = zigpy_ep.add_to_group
|
||||
FakeEndpoint.remove_from_group = zigpy_ep.remove_from_group
|
||||
|
||||
|
||||
def patch_cluster(cluster):
|
||||
|
||||
Reference in new issue
Block a user