Skip to content

Commit

Permalink
hvac: log mode on setpoint changes
Browse files Browse the repository at this point in the history
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
  • Loading branch information
Noltari committed Oct 26, 2024
1 parent 8652bf2 commit acf68d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions aioairzone_cloud/hvac.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from __future__ import annotations

import logging
from typing import Any

from .common import (
Expand Down Expand Up @@ -119,6 +120,8 @@
from .device import Device
from .entity import EntityUpdate, UpdateType

_LOGGER = logging.getLogger(__name__)


class HVAC(Device):
"""Airzone Cloud HVAC device."""
Expand Down Expand Up @@ -716,6 +719,8 @@ def set_setpoint(self, setpoint: float) -> None:
if mode is None:
return

_LOGGER.error("set_setpoint: mode=%s", mode)

if mode.is_auto():
self.set_setpoint_auto(setpoint)
elif mode.is_cool():
Expand Down

0 comments on commit acf68d5

Please sign in to comment.