Release v2.0.0

This commit is contained in:
SMKRV
2024-11-23 01:45:53 +03:00
parent 0279517a42
commit e8c40dc6b8
+8 -3
View File
@@ -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: