mirror of
https://github.com/home-assistant/core.git
synced 2025-08-13 17:45:19 +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",
|
key="departure_state",
|
||||||
translation_key="departure_state",
|
translation_key="departure_state",
|
||||||
icon="mdi:clock",
|
icon="mdi:clock",
|
||||||
value_fn=lambda data: data.departure_time,
|
value_fn=lambda data: data.departure_state,
|
||||||
device_class=SensorDeviceClass.ENUM,
|
device_class=SensorDeviceClass.ENUM,
|
||||||
options=["on_time", "delayed", "canceled"],
|
options=["on_time", "delayed", "canceled"],
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user