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

This commit is contained in:
Dan Klaffenbach 2018-08-26 12:00:20 +02:00 committed by Daniel Høyer Iversen
parent a1ce14e70f
commit 0a7055d475

View file

@ -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