mirror of
https://github.com/home-assistant/core.git
synced 2025-08-10 16:15:08 +02:00
Fix Trafikverket Train departure state (#97917)
Fix tvt departure state
This commit is contained in:
@@ -49,7 +49,7 @@ SENSOR_TYPES: tuple[TrafikverketSensorEntityDescription, ...] = (
|
||||
key="departure_state",
|
||||
translation_key="departure_state",
|
||||
icon="mdi:clock",
|
||||
value_fn=lambda data: data.departure_time,
|
||||
value_fn=lambda data: data.departure_state,
|
||||
device_class=SensorDeviceClass.ENUM,
|
||||
options=["on_time", "delayed", "canceled"],
|
||||
),
|
||||
|
Reference in New Issue
Block a user