Skip to content

Commit

Permalink
Extemd local stop future departures to max 120mins
Browse files Browse the repository at this point in the history
  • Loading branch information
vingerha committed Jan 1, 2024
1 parent eb4e2ea commit 724698a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components/gtfs2/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ async def async_step_init(
opt1_schema = {
vol.Optional(CONF_LOCAL_STOP_REFRESH_INTERVAL, default=self.config_entry.options.get(CONF_LOCAL_STOP_REFRESH_INTERVAL, DEFAULT_LOCAL_STOP_REFRESH_INTERVAL)): int,
vol.Optional(CONF_RADIUS, default=self.config_entry.options.get(CONF_RADIUS, DEFAULT_LOCAL_STOP_RADIUS)): vol.All(vol.Coerce(int), vol.Range(min=50, max=500)),
vol.Optional(CONF_TIMERANGE, default=self.config_entry.options.get(CONF_TIMERANGE, DEFAULT_LOCAL_STOP_TIMERANGE)): vol.All(vol.Coerce(int), vol.Range(min=15, max=60)),
vol.Optional(CONF_TIMERANGE, default=self.config_entry.options.get(CONF_TIMERANGE, DEFAULT_LOCAL_STOP_TIMERANGE)): vol.All(vol.Coerce(int), vol.Range(min=15, max=120)),
}
return self.async_show_form(
step_id="init",
Expand Down
2 changes: 1 addition & 1 deletion custom_components/gtfs2/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"offset": "Offset in minutes",
"real_time": "Setup Realtime integration? \n (needs data from the same source)",
"local_stop_refresh_interval": "Data refresh interval (in minutes)",
"timerange": "Checking for departures in future from 'now' (in minutes: between 15 and 90)",
"timerange": "Checking for departures in future from 'now' (in minutes: between 15 and 120)",
"radius": "Radius to search for stops (in meters between 50 and 500)"
}
},
Expand Down
2 changes: 1 addition & 1 deletion custom_components/gtfs2/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"offset": "Décalage en minutes",
"real_time": "Ajoute intégration temps réel? \n (nécessite données de la même source)",
"local_stop_refresh_interval": "Intervalle d'actualisation en minutes",
"timerange": "Période dans la future pour départs depuis 'maintenant' (en minutes entre 15 et 90)",
"timerange": "Période dans la future pour départs depuis 'maintenant' (en minutes entre 15 et 120)",
"radius": "Radius pour la recherche des stops (en metres entre 50 et 500)"
}
},
Expand Down

0 comments on commit 724698a

Please sign in to comment.