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