From d135f1c110b733ec577f0f9986282c29324f84ae Mon Sep 17 00:00:00 2001 From: Thomas55555 <59625598+Thomas55555@users.noreply.github.com> Date: Sun, 19 Oct 2025 19:48:42 +0200 Subject: [PATCH] Bump aioautomower to v2.3.1 (#151795) --- .../components/husqvarna_automower/coordinator.py | 8 -------- .../components/husqvarna_automower/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- tests/components/husqvarna_automower/test_init.py | 8 +------- 5 files changed, 4 insertions(+), 18 deletions(-) diff --git a/homeassistant/components/husqvarna_automower/coordinator.py b/homeassistant/components/husqvarna_automower/coordinator.py index 3c50f78141b..cb945df5ec8 100644 --- a/homeassistant/components/husqvarna_automower/coordinator.py +++ b/homeassistant/components/husqvarna_automower/coordinator.py @@ -182,14 +182,6 @@ class AutomowerDataUpdateCoordinator(DataUpdateCoordinator[MowerDictionary]): "Failed to listen to websocket. Trying to reconnect: %s", err, ) - if not hass.is_stopping: - await asyncio.sleep(self.reconnect_time) - self.reconnect_time = min(self.reconnect_time * 2, MAX_WS_RECONNECT_TIME) - entry.async_create_background_task( - hass, - self.client_listen(hass, entry, automower_client), - "reconnect_task", - ) def _should_poll(self) -> bool: """Return True if at least one mower is connected and at least one is not OFF.""" diff --git a/homeassistant/components/husqvarna_automower/manifest.json b/homeassistant/components/husqvarna_automower/manifest.json index 03605cc738b..b3881ed0f7c 100644 --- a/homeassistant/components/husqvarna_automower/manifest.json +++ b/homeassistant/components/husqvarna_automower/manifest.json @@ -8,5 +8,5 @@ "iot_class": "cloud_push", "loggers": ["aioautomower"], "quality_scale": "silver", - "requirements": ["aioautomower==2.2.1"] + "requirements": ["aioautomower==2.3.1"] } diff --git a/requirements_all.txt b/requirements_all.txt index aaa827afcc4..6a13b2d9df6 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -204,7 +204,7 @@ aioaseko==1.0.0 aioasuswrt==1.5.1 # homeassistant.components.husqvarna_automower -aioautomower==2.2.1 +aioautomower==2.3.1 # homeassistant.components.azure_devops aioazuredevops==2.2.2 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 691f765e655..d2b6302e119 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -192,7 +192,7 @@ aioaseko==1.0.0 aioasuswrt==1.5.1 # homeassistant.components.husqvarna_automower -aioautomower==2.2.1 +aioautomower==2.3.1 # homeassistant.components.azure_devops aioazuredevops==2.2.2 diff --git a/tests/components/husqvarna_automower/test_init.py b/tests/components/husqvarna_automower/test_init.py index 271b381d32f..031c7261981 100644 --- a/tests/components/husqvarna_automower/test_init.py +++ b/tests/components/husqvarna_automower/test_init.py @@ -192,17 +192,11 @@ async def test_websocket_not_available( await hass.async_block_till_done() assert f"{error_msg} Trying to reconnect: Boom" in caplog.text - # Simulate a successful connection caplog.clear() - await mock_called.wait() - mock_called.clear() - await hass.async_block_till_done() - assert mock.call_count == 2 - assert "Trying to reconnect: Boom" not in caplog.text # Simulate hass shutting down await hass.async_stop() - assert mock.call_count == 2 + assert mock.call_count == 1 async def test_device_info(