Skip to content

Commit 3f556f1

Browse files
committed
Clean up legacy-helper.py as suggested
1 parent ec02fef commit 3f556f1

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

plugwise/legacy/helper.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def _get_measurement_data(self, entity_id: str, entity: GwEntityData) -> None:
273273
self._get_lock_state(appliance, data, self._stretch_v2)
274274

275275
if appliance.find("type").text in ACTUATOR_CLASSES:
276-
self._get_actuator_functionalities(appliance, entity, data)
276+
self._get_actuator_functionalities(appliance, data)
277277

278278
# Anna: the Smile outdoor_temperature is present in the Home location
279279
# For some Anna's LOCATIONS is empty, falling back to domain_objects!
@@ -341,9 +341,7 @@ def _appliance_measurements(
341341

342342
self._count = count_data_items(self._count, data)
343343

344-
def _get_actuator_functionalities(
345-
self, xml: etree.Element, entity: GwEntityData, data: GwEntityData
346-
) -> None:
344+
def _get_actuator_functionalities(self, xml: etree.Element, data: GwEntityData) -> None:
347345
"""Helper-function for _get_measurement_data()."""
348346
for item in ACTIVE_ACTUATORS:
349347
temp_dict: ActuatorData = {}

0 commit comments

Comments
 (0)