eq3btsmart: add reporting for availability (#5594)

* eq3btsmart: add reporting for availability

* Update eq3btsmart.py
pull/5223/head
Teemu R 2017-01-28 08:52:46 +01:00 committed by Paulus Schoutsen
parent b7aba525ca
commit 72bc8fc5bf
1 changed files with 5 additions and 0 deletions

View File

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