Skip to content

Commit

Permalink
homematic: Make device avilable again when UNREACH becomes False (#16202
Browse files Browse the repository at this point in the history
)
  • Loading branch information
klada authored and balloob committed Aug 27, 2018
1 parent 914436f commit 9c7d438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/homematic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ def _hm_event_callback(self, device, caller, attribute, value):

# 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
Expand Down

0 comments on commit 9c7d438

Please sign in to comment.