1
mirror of https://github.com/home-assistant/core synced 2024-07-12 07:21:24 +02:00
ha-core/homeassistant/components/nmbs
Tom Barbette 33784446f6
Add nmbs canceled attribute (#57113)
* nmbs: Add canceled attribute

If a train is canceled, change the state to canceled and also add an attribute that can be matched.
Personnaly I look for the attribute and add a "line-through" CSS style to show my train was canceled.

I discovered this was not displayed the hard way :)

Signed-off-by: Tom Barbette <t.barbette@gmail.com>

* Update homeassistant/components/nmbs/sensor.py

canceled must be compared as an int, as suggested by @MartinHjelmare

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-05-26 18:04:22 +02:00
..
__init__.py
manifest.json
sensor.py Add nmbs canceled attribute (#57113) 2022-05-26 18:04:22 +02:00