Skip to content

Commit d135f1c

Browse files
Thomas55555frenck
authored andcommitted
Bump aioautomower to v2.3.1 (home-assistant#151795)
1 parent 59dace5 commit d135f1c

File tree

5 files changed

+4
-18
lines changed

5 files changed

+4
-18
lines changed

homeassistant/components/husqvarna_automower/coordinator.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -182,14 +182,6 @@ async def client_listen(
182182
"Failed to listen to websocket. Trying to reconnect: %s",
183183
err,
184184
)
185-
if not hass.is_stopping:
186-
await asyncio.sleep(self.reconnect_time)
187-
self.reconnect_time = min(self.reconnect_time * 2, MAX_WS_RECONNECT_TIME)
188-
entry.async_create_background_task(
189-
hass,
190-
self.client_listen(hass, entry, automower_client),
191-
"reconnect_task",
192-
)
193185

194186
def _should_poll(self) -> bool:
195187
"""Return True if at least one mower is connected and at least one is not OFF."""

homeassistant/components/husqvarna_automower/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
"iot_class": "cloud_push",
99
"loggers": ["aioautomower"],
1010
"quality_scale": "silver",
11-
"requirements": ["aioautomower==2.2.1"]
11+
"requirements": ["aioautomower==2.3.1"]
1212
}

requirements_all.txt

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

requirements_test_all.txt

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/components/husqvarna_automower/test_init.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -192,17 +192,11 @@ async def mock_function():
192192
await hass.async_block_till_done()
193193
assert f"{error_msg} Trying to reconnect: Boom" in caplog.text
194194

195-
# Simulate a successful connection
196195
caplog.clear()
197-
await mock_called.wait()
198-
mock_called.clear()
199-
await hass.async_block_till_done()
200-
assert mock.call_count == 2
201-
assert "Trying to reconnect: Boom" not in caplog.text
202196

203197
# Simulate hass shutting down
204198
await hass.async_stop()
205-
assert mock.call_count == 2
199+
assert mock.call_count == 1
206200

207201

208202
async def test_device_info(

0 commit comments

Comments
 (0)