mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 06:07:17 +00:00
Fix autoChangeoverActive for lyric LCC devices (#106925)
This commit is contained in:
parent
b034d6d0a1
commit
75ba879c34
@ -432,11 +432,23 @@ class LyricClimate(LyricDeviceEntity, ClimateEntity):
|
|||||||
)
|
)
|
||||||
|
|
||||||
async def _async_set_hvac_mode_lcc(self, hvac_mode: HVACMode) -> None:
|
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])
|
_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(
|
await self._update_thermostat(
|
||||||
self.location,
|
self.location,
|
||||||
self.device,
|
self.device,
|
||||||
mode=LYRIC_HVAC_MODES[hvac_mode],
|
mode=LYRIC_HVAC_MODES[hvac_mode],
|
||||||
|
autoChangeoverActive=auto_changeover,
|
||||||
)
|
)
|
||||||
|
|
||||||
async def async_set_preset_mode(self, preset_mode: str) -> None:
|
async def async_set_preset_mode(self, preset_mode: str) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user