Skip to content

Commit

Permalink
feat(Heidelberg): Pre-fill available streets when using GUI for setup
Browse files Browse the repository at this point in the history
  • Loading branch information
DerDreschner committed Jan 8, 2025
1 parent dc28c14 commit 5931e11
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,4 +282,11 @@ def fetch(self) -> list[Collection]:
)
)

return entries
return entries

CONFIG_FLOW_TYPES = {
"street": {
"type": "SELECT",
"values": Source.get_available_streets()
}
}
2 changes: 1 addition & 1 deletion doc/source/heidelberg_de.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ waste_collection_schedule:
### Configuration Variables
**street**
*(string) (required)* The street you want to get the waste collection schedule for. This value must match with an [entry from the API](https://garbage.datenplattform.heidelberg.de/streetnames). If you use the GUI to set up this source and your input doesn't match, we automatically suggest you entries based on the API response.
*(string) (required)* The street you want to get the waste collection schedule for. This value must match with an [entry from the API](https://garbage.datenplattform.heidelberg.de/streetnames). If you use the GUI to set up this source, we automatically get all available street names and provide you a drop-down list where you can choose the appropriate entry.
**collect_residual_waste_weekly**
*(bool)* By default, the city collects residual waste on a weekly basis. If you decided to switch to a bi-weekly schedule to save some money, set this value to False. If you live on a rural street where the waste is only being collected biweekly, you don't need to change anything here as it's being taken into account automatically.
Expand Down

0 comments on commit 5931e11

Please sign in to comment.