Release v2.0.0

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