Cleanup async_accept_signal in ZHA (#38009)

This commit is contained in:
David F. Mulcahey 2020-07-20 10:04:57 -04:00 committed by GitHub
parent 2a975db9cf
commit d5a03b4d6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 20 additions and 19 deletions

View file

@ -80,7 +80,7 @@ class BinarySensor(ZhaEntity, BinarySensorEntity):
"""Run when about to be added to hass."""
await super().async_added_to_hass()
await self.get_device_class()
await self.async_accept_signal(
self.async_accept_signal(
self._channel, SIGNAL_ATTR_UPDATED, self.async_set_state
)