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 Danielhiversen committed Aug 26, 2018
1 parent a1ce14e commit 0a7055d
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 0a7055d

Please sign in to comment.