Skip to content

Commit

Permalink
Remove debug-logging
Browse files Browse the repository at this point in the history
  • Loading branch information
bouwew committed Aug 25, 2024
1 parent c1ee6c5 commit acdc7f5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions plugwise/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from plugwise.constants import (
ADAM,
ANNA,
LOGGER,
MAX_SETPOINT,
MIN_SETPOINT,
NONE,
Expand Down Expand Up @@ -63,15 +62,12 @@ def _update_gw_devices(self) -> None:
self._add_or_update_notifications(device_id, device, data)

device.update(data)

LOGGER.debug("HOI mac-list: %s", mac_list)
is_battery_low = (
mac_list
and "low_battery" in device["binary_sensors"]
and device["zigbee_mac_address"] in mac_list
and device["dev_class"] in ("thermo_sensor", "thermostatic_radiator_valve", "zone_thermometer", "zone_thermostat")
)
LOGGER.debug("HOI battery-low: %s", is_battery_low)
if is_battery_low:
device["binary_sensors"]["low_battery"] = True

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

Expand Down

0 comments on commit acdc7f5

Please sign in to comment.