mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 19:09:32 +00:00
Bump aioautomower to v2.3.1 (#151795)
This commit is contained in:
committed by
Franck Nijhof
parent
59dace572a
commit
d135f1c110
@@ -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."""
|
||||
|
||||
@@ -8,5 +8,5 @@
|
||||
"iot_class": "cloud_push",
|
||||
"loggers": ["aioautomower"],
|
||||
"quality_scale": "silver",
|
||||
"requirements": ["aioautomower==2.2.1"]
|
||||
"requirements": ["aioautomower==2.3.1"]
|
||||
}
|
||||
|
||||
2
requirements_all.txt
generated
2
requirements_all.txt
generated
@@ -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
|
||||
|
||||
2
requirements_test_all.txt
generated
2
requirements_test_all.txt
generated
@@ -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
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user