Release v2.0.0

This commit is contained in:
SMKRV
2024-11-22 15:44:45 +03:00
parent accb15a92a
commit 87b45df180
+2 -1
View File
@@ -59,12 +59,13 @@ async def async_setup_entry(
coordinator = hass.data[DOMAIN][entry.entry_id] coordinator = hass.data[DOMAIN][entry.entry_id]
async_add_entities([HATextAISensor(coordinator, entry)], True) async_add_entities([HATextAISensor(coordinator, entry)], True)
from homeassistant.components.sensor import SensorDeviceClass
class HATextAISensor(CoordinatorEntity, SensorEntity): class HATextAISensor(CoordinatorEntity, SensorEntity):
"""HA text AI Sensor.""" """HA text AI Sensor."""
_attr_has_entity_name = True _attr_has_entity_name = True
_attr_device_class = SensorDeviceClass.TEXT _attr_device_class = SensorDeviceClass.TEXT # Оставляем как есть
def __init__( def __init__(
self, self,