mirror of
https://github.com/smkrv/ha-text-ai.git
synced 2026-07-28 01:54:00 +08:00
Release v2.0.0
This commit is contained in:
@@ -494,6 +494,20 @@ class HATextAICoordinator(DataUpdateCoordinator):
|
|||||||
"""Return endpoint connection status."""
|
"""Return endpoint connection status."""
|
||||||
return self._endpoint_status
|
return self._endpoint_status
|
||||||
|
|
||||||
|
@property
|
||||||
|
def api_version(self) -> str:
|
||||||
|
"""Return the API version."""
|
||||||
|
return self._api_version
|
||||||
|
|
||||||
|
async def __aenter__(self):
|
||||||
|
"""Async enter."""
|
||||||
|
await self.async_start()
|
||||||
|
return self
|
||||||
|
|
||||||
|
async def __aexit__(self, exc_type, exc_val, exc_tb):
|
||||||
|
"""Async exit."""
|
||||||
|
await self.async_stop()
|
||||||
|
|
||||||
async def async_start(self) -> None:
|
async def async_start(self) -> None:
|
||||||
"""Start coordinator operations."""
|
"""Start coordinator operations."""
|
||||||
if not self._is_ready:
|
if not self._is_ready:
|
||||||
|
|||||||
Reference in New Issue
Block a user