core/homeassistant/components/nmbs
Ronald Dehuysser 053f18d6ce Add attributes departure_minutes and delay_minutes to the nmbs sensor (#30958)
* Improve sensor for automations

I've updated the sensor so that departure time and delay can be used in automatons.

Before, the departure time and delay time were only available wrapped in strings which makes it difficult to use them in automations. Using the extra attributes, one can easily use them in automations.

* Update homeassistant/components/nmbs/sensor.py

Co-Authored-By: springstan <46536646+springstan@users.noreply.github.com>

* Updates based on review

Changed min to minutes as requested

Co-authored-by: springstan <46536646+springstan@users.noreply.github.com>
2020-01-20 09:51:59 +01:00
..
__init__.py
manifest.json Correct names in manifests (M-P) (#30541) 2020-01-07 13:28:35 +01:00
sensor.py Add attributes departure_minutes and delay_minutes to the nmbs sensor (#30958) 2020-01-20 09:51:59 +01:00