Skip to content

Commit

Permalink
πŸ—’ Adjust heatpump mode log severity
Browse files Browse the repository at this point in the history
Using a warning was not necessarily appropriate and scary.
For users of direct compensation, we'll still have an info message.
Under normal condition, we'll just have a debug message because the
method is called only to make sure we normalize all attributes.

Change-Id: I65f3b7456c83b48a408fcb9a07688ca0479e2b34
Reference: #47
  • Loading branch information
kamaradclimber committed Nov 14, 2022
1 parent b5d0f7f commit c9c0314
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion custom_components/aquarea/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,10 @@ def __init__(
self.change_mode(ZoneClimateMode.DIRECT, initialization=True)

def change_mode(self, mode: ZoneClimateMode, initialization:bool=False):
_LOGGER.warn(f"Changing mode to {mode} for zone {self.zone_id}")
if self._mode == mode:
_LOGGER.debug(f"Enforcing mode to {mode} for zone {self.zone_id}")
else:
_LOGGER.info(f"Changing mode to {mode} for zone {self.zone_id}")
self._mode = mode
if mode == ZoneClimateMode.COMPENSATION:
self._attr_min_temp = -5
Expand Down

0 comments on commit c9c0314

Please sign in to comment.