From 56ea41c143aa3a88046b9b79c95cbcaeb47fa92f Mon Sep 17 00:00:00 2001 From: SchiZzA Date: Sun, 26 Jul 2026 13:46:00 +0200 Subject: [PATCH] fix(document): Document Pocasi disable notification and timeout retry exclusion --- README.md | 6 +++--- custom_components/sws12500/const.py | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 464c0bf..3068e98 100644 --- a/README.md +++ b/README.md @@ -271,9 +271,9 @@ credentials and tick `Enable resending data to Windy` again. - You are done. -As with Windy, three unexpected responses in a row switch resending off automatically and -log the reason. The `Forwarding to Počasí Meteo` and `Forwarding status to Počasí Meteo` -diagnostic sensors show the current state. +As with Windy, three unexpected responses in a row switch resending off automatically, log +the reason and raise a persistent notification. The `Forwarding to Počasí Meteo` and +`Forwarding status to Počasí Meteo` diagnostic sensors show the current state. ## WSLink notes diff --git a/custom_components/sws12500/const.py b/custom_components/sws12500/const.py index 0ad3ca3..6534788 100644 --- a/custom_components/sws12500/const.py +++ b/custom_components/sws12500/const.py @@ -177,7 +177,9 @@ WINDY_URL = "https://stations.windy.com/api/v2/observation/update" POCASI_CZ_URL: Final = "http://ms.pocasimeteo.cz" POCASI_CZ_SEND_MINIMUM: Final = 12 # minimal time to resend data -POCASI_CZ_MAX_RETRIES: Final = 3 # failed sends in a row before resending is disabled +# Failed sends in a row before resending is disabled. Timeouts are excluded on purpose - +# a slow upstream is transient, see the TimeoutError branch in `PocasiPush`. +POCASI_CZ_MAX_RETRIES: Final = 3 # Pocasi Meteo accepts Ecowitt only as a POST in the Ecowitt protocol itself - the # station payload is forwarded verbatim rather than translated to PWS. Per their