Release v2.0.0

This commit is contained in:
SMKRV
2024-11-22 15:49:47 +03:00
parent 87b45df180
commit 51c714df25
-3
View File
@@ -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,