mirror of
https://github.com/smkrv/ha-text-ai.git
synced 2026-07-30 15:03:56 +08:00
Release v2.0.0
This commit is contained in:
@@ -13,13 +13,10 @@ class HATextAISensor(CoordinatorEntity, SensorEntity):
|
|||||||
super().__init__(coordinator)
|
super().__init__(coordinator)
|
||||||
self._config_entry = config_entry
|
self._config_entry = config_entry
|
||||||
|
|
||||||
# Убираем _response из unique_id
|
|
||||||
self._attr_unique_id = config_entry.entry_id
|
self._attr_unique_id = config_entry.entry_id
|
||||||
|
|
||||||
# Явно задаем имя
|
|
||||||
self._attr_name = "HA Text AI"
|
self._attr_name = "HA Text AI"
|
||||||
|
|
||||||
# Инициализация состояний
|
|
||||||
self._current_state = STATE_INITIALIZING
|
self._current_state = STATE_INITIALIZING
|
||||||
self._error_count = 0
|
self._error_count = 0
|
||||||
self._last_error = None
|
self._last_error = None
|
||||||
|
|||||||
Reference in New Issue
Block a user