swiss_public_transport add config flow setup (#30340)

* add config flow setup

* remove deprecated settings and add config flow
This commit is contained in:
Cyrill Raccaud 2023-12-22 06:27:04 +01:00 committed by GitHub
parent 8df27f2e52
commit ace8cf4561
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,8 +5,10 @@ ha_category:
- Transport
ha_iot_class: Cloud Polling
ha_release: pre 0.7
ha_config_flow: true
ha_codeowners:
- '@fabaff'
- '@miaucl'
ha_domain: swiss_public_transport
ha_platforms:
- sensor
@ -19,15 +21,7 @@ The [Swiss public transport API](https://transport.opendata.ch/) only allows 100
The [Stationboard](https://transport.opendata.ch/examples/stationboard.html) website can help to determine the exact name of the start and the end station.
Then add the data to your `configuration.yaml` file as shown in the example:
```yaml
# Example configuration.yaml entry
sensor:
- platform: swiss_public_transport
from: STATION_ID
to: STATION_ID
```
{% include integrations/config_flow.md %}
{% configuration %}
from: