Skip to content

Commit

Permalink
homematic: Make device avilable again when UNREACH becomes False (hom…
Browse files Browse the repository at this point in the history
  • Loading branch information
klada authored and Jacob Mansfield committed Sep 4, 2018
1 parent 3501038 commit 6bfbe7e
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 6bfbe7e

Please sign in to comment.