Update homeassistant/components/climate/__init__.py

Co-authored-by: Allen Porter <allen@thebends.org>
This commit is contained in:
Jan Bouwhuis 2024-12-31 21:52:52 +01:00 committed by GitHub
parent e2d9ca9cd9
commit a117a3cba9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -366,7 +366,7 @@ class ClimateEntity(Entity, cached_properties=CACHED_PROPERTIES_WITH_ATTR_):
The climate's on/off state can be be controlled independently The climate's on/off state can be be controlled independently
from the hvac_action and hvac_mode if the _attr_is_on attribute is set. from the hvac_action and hvac_mode if the _attr_is_on attribute is set.
If the _attr_is_on attrubiute is set, then return that value. If the _attr_is_on attribute is set, then return that value.
Otherwise, return True if hvac_action is not None and not HVACAction.OFF. Otherwise, return True if hvac_action is not None and not HVACAction.OFF.
Return None if hvac_action is None, Return None if hvac_action is None,
otherwise return True if hvac_mode is not HVACMode.OFF. otherwise return True if hvac_mode is not HVACMode.OFF.