Skip to content

Commit 1fc00c0

Browse files
committed
Typing fix
1 parent 6dd37ae commit 1fc00c0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

plugwise/helper.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,8 @@ def _get_measurement_data(self, entity_id: str) -> GwEntityData:
340340
return data
341341

342342
# Get group data
343-
measurements = GROUP_MEASUREMENTS
344343
if "members" in entity:
345-
self._collect_group_sensors(data, entity, entity_id, measurements)
344+
self._collect_group_sensors(data, entity, entity_id, GROUP_MEASUREMENTS)
346345

347346
# Get non-P1 data from APPLIANCES
348347
measurements = DEVICE_MEASUREMENTS
@@ -380,7 +379,7 @@ def _collect_group_sensors(
380379
data: GwEntityData,
381380
entity: GwEntityData,
382381
entity_id: str,
383-
measurements: dict[str, DATA | UOM],
382+
measurements: dict[str, UOM],
384383
) -> None:
385384
"""Collect group sensors."""
386385
if (group := self._domain_objects.find(f'./group[@id="{entity_id}"]')) is None:

0 commit comments

Comments
 (0)