Skip to content

Commit

Permalink
Add config flow data description to swiss public transport (#133997)
Browse files Browse the repository at this point in the history
* add config flow data description

* improve strings
  • Loading branch information
miaucl authored Dec 25, 2024
1 parent 60774c6 commit 73b6bd8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ rules:
brands: done
common-modules: done
config-flow-test-coverage: done
config-flow: todo
config-flow: done
dependency-transparency: todo
docs-actions: done
docs-high-level-description: done
Expand Down
11 changes: 10 additions & 1 deletion homeassistant/components/swiss_public_transport/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@
"data": {
"from": "Start station",
"to": "End station",
"via": "List of up to 5 via stations",
"via": "Via stations",
"time_station": "Select the relevant station",
"time_mode": "Select a time mode"
},
"data_description": {
"from": "The station where the connection starts",
"to": "The station where the connection ends",
"via": "List of up to 5 stations the route must go through",
"time_station": "Usually the departure time of a connection when it leaves the start station is tracked. Alternatively, track the time when the connection arrives at its end station.",
"time_mode": "Time mode lets you change the departure timing and fix it to a specific time (e.g. 7:12:00 AM every morning) or add a moving offset (e.g. +00:05:00 taking into account the time to walk to the station)."
},
Expand All @@ -32,13 +35,19 @@
"data": {
"time_fixed": "Time of day"
},
"data_description": {
"time_fixed": "The time of day for the connection"
},
"description": "Please select the relevant time for the connection (e.g. 7:12:00 AM every morning).",
"title": "Swiss Public Transport"
},
"time_offset": {
"data": {
"time_offset": "Time offset"
},
"data_description": {
"time_offset": "The time offset added to the earliest possible connection"
},
"description": "Please select the relevant offset to add to the earliest possible connection (e.g. add +00:05:00 offset, taking into account the time to walk to the station)",
"title": "Swiss Public Transport"
}
Expand Down

0 comments on commit 73b6bd8

Please sign in to comment.