Skip to content

Commit 3f2bc57

Browse files
committed
clean up
1 parent 7e1ea96 commit 3f2bc57

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

tests/common.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff 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

tests/websocket/test_client_controller.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
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(

0 commit comments

Comments
 (0)