mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Fix Auto mode for TCC devices like the Lyric Round (#126091)
This commit is contained in:
parent
de88068c66
commit
8410c142ab
@ -208,7 +208,13 @@ class LyricClimate(LyricDeviceEntity, ClimateEntity):
|
|||||||
if LYRIC_HVAC_MODE_COOL in device.allowed_modes:
|
if LYRIC_HVAC_MODE_COOL in device.allowed_modes:
|
||||||
self._attr_hvac_modes.append(HVACMode.COOL)
|
self._attr_hvac_modes.append(HVACMode.COOL)
|
||||||
|
|
||||||
if LYRIC_HVAC_MODE_HEAT_COOL in device.allowed_modes:
|
# TCC devices like the Lyric round do not have the Auto
|
||||||
|
# option in allowed_modes, but still support Auto mode
|
||||||
|
if LYRIC_HVAC_MODE_HEAT_COOL in device.allowed_modes or (
|
||||||
|
self._attr_thermostat_type is LyricThermostatType.TCC
|
||||||
|
and LYRIC_HVAC_MODE_HEAT in device.allowed_modes
|
||||||
|
and LYRIC_HVAC_MODE_COOL in device.allowed_modes
|
||||||
|
):
|
||||||
self._attr_hvac_modes.append(HVACMode.HEAT_COOL)
|
self._attr_hvac_modes.append(HVACMode.HEAT_COOL)
|
||||||
|
|
||||||
# Setup supported features
|
# Setup supported features
|
||||||
|
Loading…
x
Reference in New Issue
Block a user