mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Fix return value of preset_mode in hive climate (#56247)
This commit is contained in:
parent
0438c9308c
commit
28b4b5407b
@ -194,7 +194,7 @@ class HiveClimateEntity(HiveEntity, ClimateEntity):
|
|||||||
"""Return the current preset mode, e.g., home, away, temp."""
|
"""Return the current preset mode, e.g., home, away, temp."""
|
||||||
if self.device["status"]["boost"] == "ON":
|
if self.device["status"]["boost"] == "ON":
|
||||||
return PRESET_BOOST
|
return PRESET_BOOST
|
||||||
return None
|
return PRESET_NONE
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def preset_modes(self):
|
def preset_modes(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user