mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Fix hvac_modes never empty in Sensibo (#135029)
This commit is contained in:
parent
d46be61b6f
commit
0e52ea482f
@ -3,7 +3,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from bisect import bisect_left
|
||||
from typing import Any
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
import voluptuous as vol
|
||||
|
||||
@ -255,8 +255,8 @@ class SensiboClimate(SensiboDeviceBaseEntity, ClimateEntity):
|
||||
@property
|
||||
def hvac_modes(self) -> list[HVACMode]:
|
||||
"""Return the list of available hvac operation modes."""
|
||||
if not self.device_data.hvac_modes:
|
||||
return [HVACMode.OFF]
|
||||
if TYPE_CHECKING:
|
||||
assert self.device_data.hvac_modes
|
||||
return [SENSIBO_TO_HA[mode] for mode in self.device_data.hvac_modes]
|
||||
|
||||
@property
|
||||
|
Loading…
x
Reference in New Issue
Block a user