From 959c6a4eda4757bcf25498a9a74265c47237e858 Mon Sep 17 00:00:00 2001 From: "alexei.dolgolyov" Date: Thu, 5 Feb 2026 12:01:27 +0300 Subject: [PATCH] Reduce WebSocket reconnect interval to 5 seconds Change DEFAULT_RECONNECT_INTERVAL from 30s to 5s for faster reconnection after server restart. Co-Authored-By: Claude Sonnet 4.5 --- custom_components/remote_media_player/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/remote_media_player/const.py b/custom_components/remote_media_player/const.py index 19a38b6..4f607d1 100644 --- a/custom_components/remote_media_player/const.py +++ b/custom_components/remote_media_player/const.py @@ -15,7 +15,7 @@ DEFAULT_PORT = 8765 DEFAULT_POLL_INTERVAL = 5 DEFAULT_NAME = "Remote Media Player" DEFAULT_USE_WEBSOCKET = True -DEFAULT_RECONNECT_INTERVAL = 30 +DEFAULT_RECONNECT_INTERVAL = 5 # API endpoints API_HEALTH = "/api/health"