mirror of
https://github.com/smkrv/ha-text-ai.git
synced 2026-07-26 00:54:00 +08:00
Reset to current local state
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
"""Sensor platform for HA text AI."""
|
"""Sensor platform for HA text AI."""
|
||||||
from typing import Any, Callable, Dict, Optional
|
from typing import Any, Callable, Dict, Optional
|
||||||
|
|
||||||
from homeassistant.components.sensor import SensorEntity
|
from homeassistant.components.sensor import SensorEntity, SensorStateClass
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
@@ -56,4 +56,3 @@ class HATextAISensor(CoordinatorEntity, SensorEntity):
|
|||||||
ATTR_RESPONSE: last_response,
|
ATTR_RESPONSE: last_response,
|
||||||
ATTR_LAST_UPDATED: self.coordinator.last_update_success_time,
|
ATTR_LAST_UPDATED: self.coordinator.last_update_success_time,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user