Add attributes departure_minutes and delay_minutes to the nmbs sensor (#30958)
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 <0c4cc7c670c0c19a91eccfebdfc87ef5c44fe5a7@users.noreply.github.com>

* Updates based on review

Changed min to minutes as requested

Co-authored-by: springstan <0c4cc7c670c0c19a91eccfebdfc87ef5c44fe5a7@users.noreply.github.com>

jawilson/home-assistant,GenericStudent/home-assistant,sdague/home-assistant,sander76/home-assistant,kennedyshead/home-assistant,titilambert/home-assistant,rohitranjan1991/home-assistant,Danielhiversen/home-assistant,tboyce021/home-assistant,aronsky/home-assistant,toddeye/home-assistant,pschmitt/home-assistant,kennedyshead/home-assistant,toddeye/home-assistant,pschmitt/home-assistant,adrienbrault/home-assistant,mezz64/home-assistant,mKeRix/home-assistant,nkgilley/home-assistant,robbiet480/home-assistant,w1ll1am23/home-assistant,soldag/home-assistant,FreekingDean/home-assistant,tboyce1/home-assistant,soldag/home-assistant,tboyce1/home-assistant,balloob/home-assistant,partofthething/home-assistant,tboyce1/home-assistant,tchellomello/home-assistant,rohitranjan1991/home-assistant,turbokongen/home-assistant,Teagan42/home-assistant,partofthething/home-assistant,lukas-hetzenecker/home-assistant,postlund/home-assistant,FreekingDean/home-assistant,mKeRix/home-assistant,adrienbrault/home-assistant,home-assistant/home-assistant,balloob/home-assistant,w1ll1am23/home-assistant,robbiet480/home-assistant,jawilson/home-assistant,lukas-hetzenecker/home-assistant,titilambert/home-assistant,mKeRix/home-assistant,home-assistant/home-assistant,sander76/home-assistant,Teagan42/home-assistant,mezz64/home-assistant,balloob/home-assistant,tboyce1/home-assistant,tboyce021/home-assistant,aronsky/home-assistant,nkgilley/home-assistant,sdague/home-assistant,GenericStudent/home-assistant,postlund/home-assistant,Danielhiversen/home-assistant,turbokongen/home-assistant,mKeRix/home-assistant,rohitranjan1991/home-assistant,tchellomello/home-assistant