mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-09 18:36:51 +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
|
- Transport
|
||||||
ha_iot_class: Cloud Polling
|
ha_iot_class: Cloud Polling
|
||||||
ha_release: pre 0.7
|
ha_release: pre 0.7
|
||||||
|
ha_config_flow: true
|
||||||
ha_codeowners:
|
ha_codeowners:
|
||||||
- '@fabaff'
|
- '@fabaff'
|
||||||
|
- '@miaucl'
|
||||||
ha_domain: swiss_public_transport
|
ha_domain: swiss_public_transport
|
||||||
ha_platforms:
|
ha_platforms:
|
||||||
- sensor
|
- 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.
|
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:
|
{% include integrations/config_flow.md %}
|
||||||
|
|
||||||
```yaml
|
|
||||||
# Example configuration.yaml entry
|
|
||||||
sensor:
|
|
||||||
- platform: swiss_public_transport
|
|
||||||
from: STATION_ID
|
|
||||||
to: STATION_ID
|
|
||||||
```
|
|
||||||
|
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
from:
|
from:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user