eq3btsmart: add reporting for availability (#5594)

* eq3btsmart: add reporting for availability

* Update eq3btsmart.py
This commit is contained in:
Teemu R 2017-01-28 08:52:46 +01:00 committed by Paulus Schoutsen
parent b7aba525ca
commit 72bc8fc5bf

View File

@ -76,6 +76,11 @@ class EQ3BTSmartThermostat(ClimateDevice):
self._name = _name self._name = _name
self._thermostat = eq3.Thermostat(_mac) self._thermostat = eq3.Thermostat(_mac)
@property
def available(self) -> bool:
"""Return if thermostat is available."""
return self.current_operation != STATE_UNKNOWN
@property @property
def name(self): def name(self):
"""Return the name of the device.""" """Return the name of the device."""