homematic: Make device avilable again when UNREACH becomes False (#16202)
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user