Fix climate idle state for Comelit (#145059)

This commit is contained in:
Simone Chemelli 2025-05-16 19:51:30 +03:00 committed by GitHub
parent db3e596e48
commit 9114816384
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View File

@ -134,11 +134,9 @@ class ComelitClimateEntity(ComelitBridgeBaseEntity, ClimateEntity):
self._attr_current_temperature = values[0] / 10
self._attr_hvac_action = None
if _mode == ClimaComelitMode.OFF:
self._attr_hvac_action = HVACAction.OFF
if not _active:
self._attr_hvac_action = HVACAction.IDLE
if _mode in API_STATUS:
elif _mode in API_STATUS:
self._attr_hvac_action = API_STATUS[_mode]["hvac_action"]
self._attr_hvac_mode = None

View File

@ -48,7 +48,7 @@
'attributes': ReadOnlyDict({
'current_temperature': 22.1,
'friendly_name': 'Climate0',
'hvac_action': <HVACAction.HEATING: 'heating'>,
'hvac_action': <HVACAction.IDLE: 'idle'>,
'hvac_modes': list([
<HVACMode.AUTO: 'auto'>,
<HVACMode.COOL: 'cool'>,