diff --git a/homeassistant/components/august/binary_sensor.py b/homeassistant/components/august/binary_sensor.py index fe5c1f06505..50378b837a4 100644 --- a/homeassistant/components/august/binary_sensor.py +++ b/homeassistant/components/august/binary_sensor.py @@ -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) diff --git a/homeassistant/components/august/lock.py b/homeassistant/components/august/lock.py index 47b1be52184..1e1664018b4 100644 --- a/homeassistant/components/august/lock.py +++ b/homeassistant/components/august/lock.py @@ -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) diff --git a/homeassistant/components/august/manifest.json b/homeassistant/components/august/manifest.json index d4bad52c339..923cb11c248 100644 --- a/homeassistant/components/august/manifest.json +++ b/homeassistant/components/august/manifest.json @@ -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"] } diff --git a/requirements_all.txt b/requirements_all.txt index 8ac84a8608d..7415ffa9e33 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -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 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 3b855490169..20e5977656d 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -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