File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -548,12 +548,3 @@ def create_mock_zigpy_device(
548
548
cluster ._attr_cache [attr_id ] = value
549
549
550
550
return device
551
-
552
-
553
- def async_find_group_entity_id (domain : str , group : Group ) -> Optional [str ]:
554
- """Find the group entity id under test."""
555
- entity_id = f"{ domain } _zha_group_0x{ group .group_id :04x} "
556
-
557
- if entity_id in group .group_entities :
558
- return entity_id
559
- return None
Original file line number Diff line number Diff line change 41
41
SIG_EP_OUTPUT ,
42
42
SIG_EP_PROFILE ,
43
43
SIG_EP_TYPE ,
44
- async_find_group_entity_id ,
45
44
create_mock_zigpy_device ,
46
45
find_entity ,
47
46
join_zigpy_device ,
@@ -370,7 +369,7 @@ async def test_ws_client_gateway_groups(
370
369
assert member .group == zha_group
371
370
assert member .endpoint_id == 1
372
371
373
- entity_id = async_find_group_entity_id ( Platform .SWITCH , zha_group )
372
+ entity_id = f" { Platform .SWITCH } _zha_group_0x { zha_group . group_id :04x } "
374
373
assert entity_id is not None
375
374
376
375
group_proxy : Optional [WebSocketClientGroup ] = ws_client_gateway .groups .get (
You can’t perform that action at this time.
0 commit comments