mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 21:55:10 +02:00
eq3btsmart: add reporting for availability (#5594)
* eq3btsmart: add reporting for availability * Update eq3btsmart.py
This commit is contained in:
committed by
Paulus Schoutsen
parent
b7aba525ca
commit
72bc8fc5bf
@@ -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."""
|
||||||
|
Reference in New Issue
Block a user