From 51c714df256db27ec56562a019d872d055a2dd1b Mon Sep 17 00:00:00 2001 From: SMKRV Date: Fri, 22 Nov 2024 15:49:47 +0300 Subject: [PATCH] Release v2.0.0 --- custom_components/ha_text_ai/sensor.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/custom_components/ha_text_ai/sensor.py b/custom_components/ha_text_ai/sensor.py index f036b37..de6c982 100644 --- a/custom_components/ha_text_ai/sensor.py +++ b/custom_components/ha_text_ai/sensor.py @@ -59,13 +59,10 @@ async def async_setup_entry( coordinator = hass.data[DOMAIN][entry.entry_id] async_add_entities([HATextAISensor(coordinator, entry)], True) -from homeassistant.components.sensor import SensorDeviceClass - class HATextAISensor(CoordinatorEntity, SensorEntity): """HA text AI Sensor.""" _attr_has_entity_name = True - _attr_device_class = SensorDeviceClass.TEXT # Оставляем как есть def __init__( self,