mirror of
https://github.com/smkrv/ha-text-ai.git
synced 2026-07-22 07:03:58 +08:00
Release v2.0.0
This commit is contained in:
@@ -77,18 +77,23 @@ class HATextAICoordinator(DataUpdateCoordinator):
|
||||
self._session = session or aiohttp_client.async_get_clientsession(hass)
|
||||
self.client = None
|
||||
|
||||
super().__init__(
|
||||
super().__init__(
|
||||
hass,
|
||||
_LOGGER,
|
||||
name=self._name, # Используем уже установленное значение
|
||||
name=self._name,
|
||||
update_interval=timedelta(seconds=float(request_interval)),
|
||||
)
|
||||
|
||||
@property
|
||||
def name(self) -> str:
|
||||
"""Return the name of the coordinator."""
|
||||
"""Get coordinator name."""
|
||||
return self._name
|
||||
|
||||
@name.setter
|
||||
def name(self, value: str) -> None:
|
||||
"""Set coordinator name."""
|
||||
self._name = value
|
||||
|
||||
async def async_initialize(self) -> None:
|
||||
"""Initialize coordinator."""
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user