From b58976bc363748dd6c0e63544a5fb9e101418aa8 Mon Sep 17 00:00:00 2001 From: Dan Date: Wed, 14 Sep 2016 21:14:39 -0400 Subject: [PATCH] Add operation_list to radiotherm (#3393) * Add operation_list to radiotherm * Use constants --- homeassistant/components/climate/radiotherm.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/homeassistant/components/climate/radiotherm.py b/homeassistant/components/climate/radiotherm.py index e4d87fec7ec..6af0e96045c 100644 --- a/homeassistant/components/climate/radiotherm.py +++ b/homeassistant/components/climate/radiotherm.py @@ -73,6 +73,7 @@ class RadioThermostat(ClimateDevice): self._name = None self.hold_temp = hold_temp self.update() + self._operation_list = [STATE_AUTO, STATE_COOL, STATE_HEAT, STATE_OFF] @property def name(self): @@ -102,6 +103,11 @@ class RadioThermostat(ClimateDevice): """Return the current operation. head, cool idle.""" return self._current_operation + @property + def operation_list(self): + """Return the operation modes list.""" + return self._operation_list + @property def target_temperature(self): """Return the temperature we try to reach."""