From 8a15cfe4b439f19cfb910f9be75c1621ce0df28e Mon Sep 17 00:00:00 2001 From: SMKRV Date: Sat, 23 Nov 2024 23:17:41 +0300 Subject: [PATCH] Release v2.0.0 --- custom_components/ha_text_ai/coordinator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/ha_text_ai/coordinator.py b/custom_components/ha_text_ai/coordinator.py index eccf037..ab33873 100644 --- a/custom_components/ha_text_ai/coordinator.py +++ b/custom_components/ha_text_ai/coordinator.py @@ -14,7 +14,7 @@ import voluptuous as vol from homeassistant import config_entries from homeassistant.helpers import aiohttp_client from homeassistant.exceptions import HomeAssistantError -from homeassistant.exceptions import HomeAssistantError, UpdateFailed +from homeassistant.exceptions import HomeAssistantError, ConfigUpdateFailed from openai import AsyncOpenAI, APIError, AuthenticationError, RateLimitError from anthropic import AsyncAnthropic from homeassistant.core import HomeAssistant @@ -560,7 +560,7 @@ class HATextAICoordinator(DataUpdateCoordinator): except Exception as e: self._last_error = str(e) _LOGGER.error("Error updating data: %s", str(e)) - raise UpdateFailed(f"Error updating data: {str(e)}") + raise ConfigUpdateFailed(f"Error updating data: {str(e)}") async def __aenter__(self): """Async enter."""