Skip to content

Commit

Permalink
Merge pull request #367 from jwillemsen/jwi-logginggethvacmode
Browse files Browse the repository at this point in the history
Add logging to get hvac mode
  • Loading branch information
jwillemsen authored Dec 4, 2024
2 parents efb2363 + 7fa8192 commit 45918ea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions custom_components/daikin_onecta/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,12 @@ def get_hvac_mode(self):
if onoff is not None:
if onoff["value"] != "off":
mode = operationmode["value"]
_LOGGER.info(
"Device '%s': %s hvac mode '%s'",
self._device.name,
self._setpoint,
mode,
)
return DAIKIN_HVAC_TO_HA.get(mode, HVACMode.HEAT_COOL)

def get_hvac_modes(self):
Expand Down

0 comments on commit 45918ea

Please sign in to comment.