Bump aioshelly to 11.4.1 to accomodate shelly GetStatus calls that take a few seconds to respond (#124893)

Co-authored-by: Shay Levy <levyshay1@gmail.com>
pull/124880/head
J. Nick Koston 2024-08-30 09:05:16 -10:00 committed by Bram Kragten
parent 0948a94409
commit c6ff445dd4
5 changed files with 6 additions and 7 deletions

View File

@ -793,8 +793,7 @@ class ShellyRpcPollingCoordinator(ShellyCoordinatorBase[RpcDevice]):
LOGGER.debug("Polling Shelly RPC Device - %s", self.name)
try:
await self.device.update_status()
await self.device.get_dynamic_components()
await self.device.poll()
except (DeviceConnectionError, RpcCallError) as err:
raise UpdateFailed(f"Device disconnected: {err!r}") from err
except InvalidAuthError:

View File

@ -9,7 +9,7 @@
"iot_class": "local_push",
"loggers": ["aioshelly"],
"quality_scale": "platinum",
"requirements": ["aioshelly==11.3.0"],
"requirements": ["aioshelly==11.4.1"],
"zeroconf": [
{
"type": "_http._tcp.local.",

View File

@ -359,7 +359,7 @@ aioruuvigateway==0.1.0
aiosenz==1.0.0
# homeassistant.components.shelly
aioshelly==11.3.0
aioshelly==11.4.1
# homeassistant.components.skybell
aioskybell==22.7.0

View File

@ -341,7 +341,7 @@ aioruuvigateway==0.1.0
aiosenz==1.0.0
# homeassistant.components.shelly
aioshelly==11.3.0
aioshelly==11.4.1
# homeassistant.components.skybell
aioskybell==22.7.0

View File

@ -678,7 +678,7 @@ async def test_rpc_polling_auth_error(
monkeypatch.setattr(
mock_rpc_device,
"update_status",
"poll",
AsyncMock(
side_effect=InvalidAuthError,
),
@ -768,7 +768,7 @@ async def test_rpc_polling_connection_error(
monkeypatch.setattr(
mock_rpc_device,
"update_status",
"poll",
AsyncMock(
side_effect=DeviceConnectionError,
),