Fix model selection, docs links, cache-busting, and Assist routing

This commit is contained in:
root
2026-04-04 16:28:35 +03:00
parent 7050441f8d
commit e17bd0aa85
11 changed files with 121 additions and 138 deletions
+5
View File
@@ -104,6 +104,11 @@ class OpenClawApiClient:
async def _get_session(self) -> aiohttp.ClientSession:
"""Get or create an aiohttp session."""
if self._session is None or self._session.closed:
if self._session is not None and self._session.closed:
_LOGGER.warning(
"Primary aiohttp session unavailable — creating fallback session. "
"This may bypass HA connection management"
)
self._session = aiohttp.ClientSession()
return self._session