From 6ee4e2af360f5ee176dc399096190cfed43ae8f1 Mon Sep 17 00:00:00 2001 From: JoshuaDodds Date: Thu, 19 Dec 2024 20:21:22 +0100 Subject: [PATCH] [skip ci] increase tibber api retry count --- lib/tibber_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tibber_api.py b/lib/tibber_api.py index f0d2f75..94a4980 100644 --- a/lib/tibber_api.py +++ b/lib/tibber_api.py @@ -59,7 +59,7 @@ async def log_accumulated(data): logging.info(f"Tibber: Live measurements starting...") try: home.start_live_feed(user_agent=f"cerbomoticzgx/{dotenv_config('VERSION')}", - retries=3, + retries=10, retry_interval=10) except (TransportClosed, ConnectionClosedError) as e: logging.info(f"Tibber Error: {e} It seems we have a network/connectivity issue. Attempting a service restart...")