From ba04ff17b2fabed8b617ac49cc726766ee26716c Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sun, 21 Jul 2019 03:00:16 +0200 Subject: [PATCH] Fix for hvac_modes list being null (#25347) * Fix for empty hvac_modes list * Empty list instead of default value for hvac_modes --- homeassistant/components/zwave/climate.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/zwave/climate.py b/homeassistant/components/zwave/climate.py index 188f376e753..18cacf3b8a0 100644 --- a/homeassistant/components/zwave/climate.py +++ b/homeassistant/components/zwave/climate.py @@ -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):