Fix ZHA bugs (#21246)

* fix bugs

* add comment

* allow entities to be marked unavailable
This commit is contained in:
David F. Mulcahey 2019-02-21 08:20:58 -05:00 committed by Pascal Vizeli
parent 2435456248
commit 0f8575f939
3 changed files with 19 additions and 8 deletions

View file

@ -146,11 +146,11 @@ class ZHADevice:
self._available_signal,
False
)
async_dispatcher_send(
self.hass,
"{}_{}".format(self._available_signal, 'entity'),
True
)
async_dispatcher_send(
self.hass,
"{}_{}".format(self._available_signal, 'entity'),
available
)
self._available = available
@property