Skip to content

Commit 72bc8fc

Browse files
rytilahtiballoob
authored andcommitted
eq3btsmart: add reporting for availability (home-assistant#5594)
* eq3btsmart: add reporting for availability * Update eq3btsmart.py
1 parent b7aba52 commit 72bc8fc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

homeassistant/components/climate/eq3btsmart.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ def __init__(self, _mac, _name):
7676
self._name = _name
7777
self._thermostat = eq3.Thermostat(_mac)
7878

79+
@property
80+
def available(self) -> bool:
81+
"""Return if thermostat is available."""
82+
return self.current_operation != STATE_UNKNOWN
83+
7984
@property
8085
def name(self):
8186
"""Return the name of the device."""

0 commit comments

Comments
 (0)