bruxy70 / CZ-Public-Transport

🚍 Home Assistant custom sensor for finding Czech Public Transportation Connections
15 stars 5 forks source link

Development config change #5

Closed bruxy70 closed 4 years ago

bruxy70 commented 4 years ago

Breaking change

Configuration change. If you have a previous config in configuration.yaml, you need to change it from:

sensor:
  - platform: cz_pub_tran
    name: <sensor friendly name>
    origin: <departure station name>
    destination: <arrival station name>

to

  cz_pub_tran:
    sensors:
      name: <sensor friendly name>
      origin: <departure station name>
      destination: <arrival station name>

There are also some new exciting configuration options - check README for details.

New features

Added force_refresh_period parameter to set the frequency of force refresh (to check for delays) A scan_interval parameter to set the overall polling frequency And you can now choose from 3 different formats for the detail attribute: text (same as in the previous version). HTML (shows formatted table) and list - if you want to access it from a template (check the README for example)

Changes

Complete refactoring, simplification - overall speed and stability improvements.