Skip to content
Snippets Groups Projects
Unverified Commit 75ba879c authored by Numa Perez's avatar Numa Perez Committed by GitHub
Browse files

Fix autoChangeoverActive for lyric LCC devices (#106925)

parent b034d6d0
No related branches found
No related tags found
No related merge requests found
......@@ -432,11 +432,23 @@ class LyricClimate(LyricDeviceEntity, ClimateEntity):
)
async def _async_set_hvac_mode_lcc(self, hvac_mode: HVACMode) -> None:
"""Set hvac mode for LCC devices (e.g., T5,6)."""
_LOGGER.debug("HVAC mode passed to lyric: %s", LYRIC_HVAC_MODES[hvac_mode])
# Set autoChangeoverActive to True if the mode being passed is Auto
# otherwise leave unchanged.
if (
LYRIC_HVAC_MODES[hvac_mode] == LYRIC_HVAC_MODE_HEAT_COOL
and not self.device.changeableValues.autoChangeoverActive
):
auto_changeover = True
else:
auto_changeover = None
await self._update_thermostat(
self.location,
self.device,
mode=LYRIC_HVAC_MODES[hvac_mode],
autoChangeoverActive=auto_changeover,
)
async def async_set_preset_mode(self, preset_mode: str) -> None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment