Skip to content

Commit 6847933

Browse files
committed
Try 6
1 parent bce6228 commit 6847933

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

plugwise/helper.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,9 @@ def _get_appliance_data(self, d_id: str) -> DeviceData:
934934
toggle_data := self._get_toggle_state(appliance, toggle, name)
935935
is not None
936936
):
937-
LOGGER.debug("HOI %s ", toggle_data)
937+
LOGGER.debug(
938+
"HOI %s ", self._get_toggle_state(appliance, toggle, name)
939+
)
938940
data.update(toggle_data)
939941

940942
if (appl_type := appliance.find("type")) is not None:
@@ -1365,7 +1367,6 @@ def _get_toggle_state(
13651367
"""Helper-function for _get_appliance_data().
13661368
Obtain the toggle state of 'toggle'.
13671369
"""
1368-
LOGGER.debug("HOI 1 %s %s", toggle, name)
13691370
data: DeviceData = {}
13701371
if xml.find("type").text == "heater_central":
13711372
locator = "./actuator_functionalities/toggle_functionality"
@@ -1376,10 +1377,8 @@ def _get_toggle_state(
13761377
if (toggle_type := item.find("type")) is not None:
13771378
if toggle_type.text == toggle:
13781379
data.update({name: item.find("state") == "on"})
1379-
LOGGER.debug("HOI 1a %s", data)
13801380

13811381
if data:
1382-
LOGGER.debug("HOI 1b %s", data)
13831382
return data
13841383

13851384
return None

0 commit comments

Comments
 (0)