homematic: Make device avilable again when UNREACH becomes False (#16202)

This commit is contained in:
Dan Klaffenbach authored and Paulus Schoutsen committed 2018-08-28 00:38:06 +02:00
1 parent 914436f3d5
commit 9c7d4381a1
1 file changed
+1 -1
@@ -869,7 +869,7 @@ class HMDevice(Entity):
# Availability has changed
if attribute == 'UNREACH':
self._available = bool(value)
self._available = not bool(value)
has_changed = True
elif not self.available:
self._available = False