From ab79d05e9658401d7f4cbe82cbf35f1f9cd93fcc Mon Sep 17 00:00:00 2001 From: SMKRV Date: Fri, 22 Nov 2024 16:08:33 +0300 Subject: [PATCH] Release v2.0.0 --- custom_components/ha_text_ai/sensor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custom_components/ha_text_ai/sensor.py b/custom_components/ha_text_ai/sensor.py index 5bd5341..d022feb 100644 --- a/custom_components/ha_text_ai/sensor.py +++ b/custom_components/ha_text_ai/sensor.py @@ -73,12 +73,14 @@ class HATextAISensor(CoordinatorEntity, SensorEntity): super().__init__(coordinator) self._config_entry = config_entry self._attr_unique_id = f"{config_entry.entry_id}" + self._attr_name = "HA Text AI" # Имя для сенсора self._attr_suggested_display_precision = 0 self._error_count = 0 self._last_error = None self._state = STATE_INITIALIZING + # Добавляем провайдера в device_info self._attr_device_info = { "identifiers": {(DOMAIN, self._attr_unique_id)}, "name": "HA Text AI",