Update yalexs to 6.1.0 (#119910)

This commit is contained in:
J. Nick Koston 2024-06-18 17:36:07 -05:00 committed by GitHub
parent 39e5e517b0
commit 025d861e67
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 7 additions and 10 deletions

View File

@ -84,10 +84,7 @@ def _retrieve_ding_state(data: AugustData, detail: DoorbellDetail | LockDetail)
if latest is None:
return False
if (
data.activity_stream.pubnub.connected
and latest.action == ACTION_DOORBELL_CALL_MISSED
):
if data.push_updates_connected and latest.action == ACTION_DOORBELL_CALL_MISSED:
return False
return _activity_time_based_state(latest)

View File

@ -53,7 +53,7 @@ class AugustLock(AugustEntityMixin, RestoreEntity, LockEntity):
async def async_lock(self, **kwargs: Any) -> None:
"""Lock the device."""
assert self._data.activity_stream is not None
if self._data.activity_stream.pubnub.connected:
if self._data.push_updates_connected:
await self._data.async_lock_async(self._device_id, self._hyper_bridge)
return
await self._call_lock_operation(self._data.async_lock)
@ -61,7 +61,7 @@ class AugustLock(AugustEntityMixin, RestoreEntity, LockEntity):
async def async_open(self, **kwargs: Any) -> None:
"""Open/unlatch the device."""
assert self._data.activity_stream is not None
if self._data.activity_stream.pubnub.connected:
if self._data.push_updates_connected:
await self._data.async_unlatch_async(self._device_id, self._hyper_bridge)
return
await self._call_lock_operation(self._data.async_unlatch)
@ -69,7 +69,7 @@ class AugustLock(AugustEntityMixin, RestoreEntity, LockEntity):
async def async_unlock(self, **kwargs: Any) -> None:
"""Unlock the device."""
assert self._data.activity_stream is not None
if self._data.activity_stream.pubnub.connected:
if self._data.push_updates_connected:
await self._data.async_unlock_async(self._device_id, self._hyper_bridge)
return
await self._call_lock_operation(self._data.async_unlock)

View File

@ -28,5 +28,5 @@
"documentation": "https://www.home-assistant.io/integrations/august",
"iot_class": "cloud_push",
"loggers": ["pubnub", "yalexs"],
"requirements": ["yalexs==6.0.0", "yalexs-ble==2.4.2"]
"requirements": ["yalexs==6.1.0", "yalexs-ble==2.4.2"]
}

View File

@ -2939,7 +2939,7 @@ yalesmartalarmclient==0.3.9
yalexs-ble==2.4.2
# homeassistant.components.august
yalexs==6.0.0
yalexs==6.1.0
# homeassistant.components.yeelight
yeelight==0.7.14

View File

@ -2295,7 +2295,7 @@ yalesmartalarmclient==0.3.9
yalexs-ble==2.4.2
# homeassistant.components.august
yalexs==6.0.0
yalexs==6.1.0
# homeassistant.components.yeelight
yeelight==0.7.14