Releases: fermartv/emt_madrid
Releases · fermartv/emt_madrid
Streamlined Monitoring of Multiple Lines
🤩 NEW FEATURES 🤩
- Multiple lines for a single stop are now supported. This allows for a more efficient use of the API and server resources when monitoring several lines for a single stop.
- Additional information has been added to attributes, such as service start and end time, stop name and address, and many more.
- Overall code and tests have been improved.
If you were using previous versions of this component, please make the following changes:
- The
name
parameter in the config is no longer supported. It should be removed as the sensors will now be named automatically. - The
line
parameter is now called lines and should be provided as a list of lines. You can either remove it to get a sensor for each line that goes through that bus stop or include a list of lines that you wish to monitor. - The
stop
parameter now expects an integer value.
If your previous configuration looked like this:
sensor:
- platform: emt_madrid
email: !secret EMT_EMAIL
password: !secret EMT_PASSWORD
stop: "72"
line: "27"
name: "Bus 27 en Cibeles"
icon: "mdi:fountain"
- platform: emt_madrid
email: !secret EMT_EMAIL
password: !secret EMT_PASSWORD
stop: "72"
line: "N26"
name: "Bus N26 en Cibeles"
icon: "mdi:fountain"
You should change it to this:
sensor:
- platform: emt_madrid
email: !secret EMT_EMAIL
password: !secret EMT_PASSWORD
stop: 72
lines:
- "27"
- "N26"
icon: "mdi:fountain"
🔧 HOW TO UPDATE 🔧
To update to the latest version, please follow the steps below:
- Download and extract the Source code (zip) file located below these release notes.
- Using your preferred tool, open the directory for your Home Assistant configuration, where you can find the configuration.yaml file.
- If you don't already have a custom_components directory in your configuration directory, create one.
- Within the custom_components directory, create a new directory named emt_madrid.
- Download and save all the files from the custom_components/emt_madrid/ directory in the downloaded Source code.
- Place the downloaded files into the newly created emt_madrid directory.
- Restart Home Assistant to apply the changes.
- Update your configuration as indicated above.
Fix breaking changes
Fixed the following changes:
manifest.json
version: https://developers.home-assistant.io/blog/2021/01/29/custom-integration-changes/#versions- Updated to
extra_state_attributes
First release
First release