mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 18:18:21 +00:00
Fix for hvac_modes list being null (#25347)
* Fix for empty hvac_modes list * Empty list instead of default value for hvac_modes
This commit is contained in:
parent
f6b6818fb0
commit
a56b604936
@ -244,7 +244,9 @@ class ZWaveClimate(ZWaveDeviceEntity, ClimateDevice):
|
||||
|
||||
Need to be a subset of HVAC_MODES.
|
||||
"""
|
||||
return self._hvac_list
|
||||
if self.values.mode:
|
||||
return self._hvac_list
|
||||
return []
|
||||
|
||||
@property
|
||||
def hvac_action(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user