mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 03:37:07 +00:00
Fix Trafikverket Train departure state (#97917)
Fix tvt departure state
This commit is contained in:
parent
74d1c30f7e
commit
163bbe2c5d
@ -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"],
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user