Fix Trafikverket Train departure state (#97917)

Fix tvt departure state
This commit is contained in:
G Johansson 2023-08-06 18:50:00 +02:00 committed by GitHub
parent 74d1c30f7e
commit 163bbe2c5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"],
),