Release v2.0.0

This commit is contained in:
SMKRV
2024-11-21 18:05:45 +03:00
parent 662ce701ca
commit f6c0e6265e
+5 -1
View File
@@ -204,7 +204,6 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
else:
raise ConfigEntryNotReady("Failed to connect to API")
# Create coordinator
try:
# Create coordinator
coordinator = HATextAICoordinator(
@@ -237,6 +236,11 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
_LOGGER.exception("Error initializing coordinator: %s", str(ex))
raise ConfigEntryNotReady(f"Error initializing coordinator: {str(ex)}") from ex
except Exception as ex:
_LOGGER.exception("Setup error: %s", str(ex))
raise ConfigEntryNotReady(f"Setup error: {str(ex)}") from ex
async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
"""Unload a config entry."""
try: