From 5981529b265001b8421aa95485f56e4c49b7630a Mon Sep 17 00:00:00 2001 From: Smart2TDad <112063681+Smart2TDad@users.noreply.github.com> Date: Tue, 10 Oct 2023 22:16:06 +0100 Subject: [PATCH] Update __init__.py Change refresh time to 45 seconds. Rate-limiting is causing a 403 error for calls more frequently than 30seconds. Occasionally the code triggers a call just less than 30 seconds. A more elegant solution would be to integrate any information from the 429 error code but that will be considerably more work. --- custom_components/volkswagen_we_connect_id/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/volkswagen_we_connect_id/__init__.py b/custom_components/volkswagen_we_connect_id/__init__.py index 31c73f4..290d56b 100644 --- a/custom_components/volkswagen_we_connect_id/__init__.py +++ b/custom_components/volkswagen_we_connect_id/__init__.py @@ -66,7 +66,7 @@ async def async_update_data(): _LOGGER, name=DOMAIN, update_method=async_update_data, - update_interval=timedelta(seconds=30), + update_interval=timedelta(seconds=45), ) hass.data.setdefault(DOMAIN, {})