Fix Lyric climate Auto mode (#123490)

fix: Lyric has an actual "Auto" mode that is exposed if the device has an Auto mode.
pull/126062/head
Kristof Mattei 2024-09-10 08:06:25 -07:00 committed by Franck Nijhof
parent ed2d321746
commit dc189e1d58
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
1 changed files with 1 additions and 4 deletions

View File

@ -208,10 +208,7 @@ class LyricClimate(LyricDeviceEntity, ClimateEntity):
if LYRIC_HVAC_MODE_COOL in device.allowed_modes:
self._attr_hvac_modes.append(HVACMode.COOL)
if (
LYRIC_HVAC_MODE_HEAT in device.allowed_modes
and LYRIC_HVAC_MODE_COOL in device.allowed_modes
):
if LYRIC_HVAC_MODE_HEAT_COOL in device.allowed_modes:
self._attr_hvac_modes.append(HVACMode.HEAT_COOL)
# Setup supported features