Emilv2/stib_mivb

same stop 2 directions: same sensor name

Opened this issue · 2 comments

I have this in my configuration.yaml

    stops:
      - stop_id: 8231
        line_numbers:
          - 5
      - stop_id: 8232
        line_numbers:
          - 5

This generate 2 sensors "sensor.delta_line_5" and "sensor.delta_line_5_2". One for each directions.
BUT after a restart of HA their labels are switching.

You're not the first to mention this. I actually fixed this problem in my pull request to HA, but never updated the code here. Should be a quick fix.

You're not the first to mention this. I actually fixed this problem in my pull request to HA, but never updated the code here. Should be a quick fix.

Any help to fix this now on existing HA instance ?