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
b0b2b0d654
commit
ba04ff17b2
1 changed files with 3 additions and 1 deletions
|
@ -244,7 +244,9 @@ class ZWaveClimate(ZWaveDeviceEntity, ClimateDevice):
|
||||||
|
|
||||||
Need to be a subset of HVAC_MODES.
|
Need to be a subset of HVAC_MODES.
|
||||||
"""
|
"""
|
||||||
|
if self.values.mode:
|
||||||
return self._hvac_list
|
return self._hvac_list
|
||||||
|
return []
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def hvac_action(self):
|
def hvac_action(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue