mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +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",
|
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"],
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user