mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-08 18:06:54 +00:00
swiss_public_transport add config flow setup (#30340)
* add config flow setup * remove deprecated settings and add config flow
This commit is contained in:
parent
8df27f2e52
commit
ace8cf4561
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user