mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 07:37:34 +00:00
eq3btsmart: add reporting for availability (#5594)
* eq3btsmart: add reporting for availability * Update eq3btsmart.py
This commit is contained in:
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."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user