mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Add operation_list to radiotherm (#3393)
* Add operation_list to radiotherm * Use constants
This commit is contained in:
parent
70a79efb77
commit
b58976bc36
@ -73,6 +73,7 @@ class RadioThermostat(ClimateDevice):
|
|||||||
self._name = None
|
self._name = None
|
||||||
self.hold_temp = hold_temp
|
self.hold_temp = hold_temp
|
||||||
self.update()
|
self.update()
|
||||||
|
self._operation_list = [STATE_AUTO, STATE_COOL, STATE_HEAT, STATE_OFF]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
@ -102,6 +103,11 @@ class RadioThermostat(ClimateDevice):
|
|||||||
"""Return the current operation. head, cool idle."""
|
"""Return the current operation. head, cool idle."""
|
||||||
return self._current_operation
|
return self._current_operation
|
||||||
|
|
||||||
|
@property
|
||||||
|
def operation_list(self):
|
||||||
|
"""Return the operation modes list."""
|
||||||
|
return self._operation_list
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def target_temperature(self):
|
def target_temperature(self):
|
||||||
"""Return the temperature we try to reach."""
|
"""Return the temperature we try to reach."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user