eq3btsmart: add reporting for availability (#5594)
* eq3btsmart: add reporting for availability * Update eq3btsmart.pypull/5223/head
parent
b7aba525ca
commit
72bc8fc5bf
|
@ -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."""
|
||||
|
|
Loading…
Reference in New Issue