Add operation_list to radiotherm (#3393)

* Add operation_list to radiotherm

* Use constants
pull/3411/head
Dan 2016-09-14 21:14:39 -04:00 committed by Paulus Schoutsen
parent 70a79efb77
commit b58976bc36
1 changed files with 6 additions and 0 deletions

View File

@ -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."""