From 72bc8fc5bff939ad1589f51cbce4d48622f49fa0 Mon Sep 17 00:00:00 2001 From: Teemu R Date: Sat, 28 Jan 2017 08:52:46 +0100 Subject: [PATCH] eq3btsmart: add reporting for availability (#5594) * eq3btsmart: add reporting for availability * Update eq3btsmart.py --- homeassistant/components/climate/eq3btsmart.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/homeassistant/components/climate/eq3btsmart.py b/homeassistant/components/climate/eq3btsmart.py index a8ab9bd30b2..6587ad86300 100644 --- a/homeassistant/components/climate/eq3btsmart.py +++ b/homeassistant/components/climate/eq3btsmart.py @@ -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."""