Fix Lyric climate Auto mode (#123490)

fix: Lyric has an actual "Auto" mode that is exposed if the device has an Auto mode.
This commit is contained in:
Kristof Mattei 2024-09-10 08:06:25 -07:00 committed by GitHub
parent 8324360045
commit 300445948e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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