Skip to content

Commit

Permalink
chore: Improves logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
MislavMandaric committed Apr 11, 2022
1 parent e7ea00b commit 7cd0a9b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions custom_components/vaillant_vsmart/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ def hvac_action(self) -> str:
try:
if self._module.measured.temperature < self._module.measured.setpoint_temp:
return CURRENT_HVAC_HEAT
except TypeError as ex:
_LOGGER.exception(ex)
except TypeError:
pass

return CURRENT_HVAC_IDLE

Expand Down Expand Up @@ -155,7 +155,7 @@ def preset_mode(self) -> str:
async def async_set_hvac_mode(self, hvac_mode: str) -> None:
"""Select new HVAC operation mode."""

_LOGGER.debug(f"Setting HVAC mode to: {hvac_mode}")
_LOGGER.debug("Setting HVAC mode to: %s", hvac_mode)

if hvac_mode == HVAC_MODE_OFF:
try:
Expand Down Expand Up @@ -213,7 +213,7 @@ async def async_set_hvac_mode(self, hvac_mode: str) -> None:
async def async_set_preset_mode(self, preset_mode: str) -> None:
"""Select new HVAC preset mode."""

_LOGGER.debug(f"Setting HVAC preset mode to: {preset_mode}")
_LOGGER.debug("Setting HVAC preset mode to: %s", preset_mode)

if self._device.system_mode == SystemMode.FROSTGUARD:
return
Expand Down Expand Up @@ -266,7 +266,7 @@ async def async_set_temperature(self, **kwargs) -> None:
if new_temperature is None:
return

_LOGGER.debug(f"Setting target temperature to: {new_temperature}")
_LOGGER.debug("Setting target temperature to: %s", new_temperature)

endtime = datetime.datetime.now() + datetime.timedelta(
minutes=self._device.setpoint_default_duration
Expand Down

0 comments on commit 7cd0a9b

Please sign in to comment.