From 0e5c1a0b440bdd61dc79c9730b63f75bc47768c1 Mon Sep 17 00:00:00 2001 From: Artem Chepurnyi Date: Sat, 29 Jun 2024 16:45:24 +0300 Subject: [PATCH] fix: Increase polling interval and timeout #109 --- custom_components/bluetti_bt/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/bluetti_bt/__init__.py b/custom_components/bluetti_bt/__init__.py index 8d68e05..16fb215 100644 --- a/custom_components/bluetti_bt/__init__.py +++ b/custom_components/bluetti_bt/__init__.py @@ -38,9 +38,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: address = entry.data.get(CONF_ADDRESS) device_name = entry.data.get(CONF_NAME) use_controls = entry.data.get(CONF_USE_CONTROLS) - polling_interval = entry.data.get(CONF_POLLING_INTERVAL, 20) + polling_interval = entry.data.get(CONF_POLLING_INTERVAL, 60) persistent_conn = entry.data.get(CONF_PERSISTENT_CONN, False) - polling_timeout = entry.data.get(CONF_POLLING_TIMEOUT, 45) + polling_timeout = entry.data.get(CONF_POLLING_TIMEOUT, 120) max_retries = entry.data.get(CONF_MAX_RETRIES, 5) if address is None: