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(
548548 cluster ._attr_cache [attr_id ] = value
549549
550550 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 4141 SIG_EP_OUTPUT ,
4242 SIG_EP_PROFILE ,
4343 SIG_EP_TYPE ,
44- async_find_group_entity_id ,
4544 create_mock_zigpy_device ,
4645 find_entity ,
4746 join_zigpy_device ,
@@ -370,7 +369,7 @@ async def test_ws_client_gateway_groups(
370369 assert member .group == zha_group
371370 assert member .endpoint_id == 1
372371
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 } "
374373 assert entity_id is not None
375374
376375 group_proxy : Optional [WebSocketClientGroup ] = ws_client_gateway .groups .get (
You can’t perform that action at this time.
0 commit comments