Set August doorbell availability state from online state (#20883)
The available state for the August Doorbell is currently set based on the state of the binary ding sensor. This means that if there is no door bell rings in a while on startup the doorbell is shown as Unavailable (#20421) . This ties the availability of the doorbell to the actual online state thats in the device information retrieved from august so that even if there has not been a doorbell ring activity on a while the device shows as online when it is.
This commit is contained in:
parent
33dcb071da
commit
24914aade5
1 changed files with 1 additions and 1 deletions
|
@ -181,4 +181,4 @@ class AugustDoorbellBinarySensor(BinarySensorDevice):
|
|||
"""Get the latest state of the sensor."""
|
||||
state_provider = SENSOR_TYPES_DOORBELL[self._sensor_type][2]
|
||||
self._state = state_provider(self._data, self._doorbell)
|
||||
self._available = self._state is not None
|
||||
self._available = self._doorbell.is_online
|
||||
|
|
Loading…
Add table
Reference in a new issue