Skip to content

Commit acdc7f5

Browse files
committed
Remove debug-logging
1 parent c1ee6c5 commit acdc7f5

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

plugwise/data.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from plugwise.constants import (
1010
ADAM,
1111
ANNA,
12-
LOGGER,
1312
MAX_SETPOINT,
1413
MIN_SETPOINT,
1514
NONE,
@@ -63,15 +62,12 @@ def _update_gw_devices(self) -> None:
6362
self._add_or_update_notifications(device_id, device, data)
6463

6564
device.update(data)
66-
67-
LOGGER.debug("HOI mac-list: %s", mac_list)
6865
is_battery_low = (
6966
mac_list
7067
and "low_battery" in device["binary_sensors"]
7168
and device["zigbee_mac_address"] in mac_list
7269
and device["dev_class"] in ("thermo_sensor", "thermostatic_radiator_valve", "zone_thermometer", "zone_thermostat")
7370
)
74-
LOGGER.debug("HOI battery-low: %s", is_battery_low)
7571
if is_battery_low:
7672
device["binary_sensors"]["low_battery"] = True
7773

@@ -90,7 +86,6 @@ def _detect_low_batteries(self) -> list[str]:
9086
message: str | None = notification.get("message")
9187
warning: str | None = notification.get("warning")
9288
notify = message or warning
93-
LOGGER.debug("HOI result: %s", notify)
9489
if notify is not None and all(x in notify for x in matches) and (mac_addresses := mac_pattern.findall(notify)):
9590
mac_address = mac_addresses[0] # re.findall() outputs a list
9691

0 commit comments

Comments
 (0)