From 8be860007aefed5d7c6e0f2304e78e517a16e023 Mon Sep 17 00:00:00 2001 From: SMKRV Date: Wed, 20 Nov 2024 01:39:19 +0300 Subject: [PATCH] Retry constants MAX_RETRIES: Final = 3 RETRY_DELAY: Final = 1.0 --- custom_components/ha_text_ai/const.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/custom_components/ha_text_ai/const.py b/custom_components/ha_text_ai/const.py index 63d0f36..baf7339 100644 --- a/custom_components/ha_text_ai/const.py +++ b/custom_components/ha_text_ai/const.py @@ -170,6 +170,10 @@ LOG_LEVEL_DEFAULT: Final = "INFO" QUEUE_TIMEOUT: Final = 5 QUEUE_MAX_SIZE: Final = 100 +# Retry constants +MAX_RETRIES: Final = 3 +RETRY_DELAY: Final = 1.0 + # Service schema constants SCHEMA_QUESTION: Final = "question" SCHEMA_MODEL: Final = "model"