mirror of
https://github.com/home-assistant/core.git
synced 2025-08-18 03:51:51 +02:00
remove not that important comment and move the other
This commit is contained in:
@@ -72,8 +72,9 @@ class AutomowerDataUpdateCoordinator(DataUpdateCoordinator[dict[str, MowerAttrib
|
|||||||
"""Listen with the client."""
|
"""Listen with the client."""
|
||||||
try:
|
try:
|
||||||
await automower_client.auth.websocket_connect()
|
await automower_client.auth.websocket_connect()
|
||||||
await automower_client.start_listening() # Ensure we catch errors here too
|
await automower_client.start_listening()
|
||||||
self.reconnect_time = DEFAULT_RECONNECT_TIME # Reset reconnect time after successful connection
|
# Reset reconnect time after successful connection
|
||||||
|
self.reconnect_time = DEFAULT_RECONNECT_TIME
|
||||||
except HusqvarnaWSServerHandshakeError as err:
|
except HusqvarnaWSServerHandshakeError as err:
|
||||||
_LOGGER.debug(
|
_LOGGER.debug(
|
||||||
"Failed to connect to websocket. Trying to reconnect: %s",
|
"Failed to connect to websocket. Trying to reconnect: %s",
|
||||||
|
Reference in New Issue
Block a user