Add button to wake august locks from deep sleep (#66343)

This commit is contained in:
J. Nick Koston 2022-02-11 17:13:35 -06:00 committed by GitHub
parent 0797533016
commit a6742eff34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 83 additions and 11 deletions

View file

@ -36,6 +36,11 @@ class AugustEntityMixin(Entity):
def _detail(self):
return self._data.get_device_detail(self._device.device_id)
@property
def _hyper_bridge(self):
"""Check if the lock has a paired hyper bridge."""
return bool(self._detail.bridge and self._detail.bridge.hyper_bridge)
@callback
def _update_from_data_and_write_state(self):
self._update_from_data()