Skip to content

Add source for Invercargill City Council (NZ) - #7312

Open
etamtlosz wants to merge 3 commits into
mampfes:masterfrom
etamtlosz:add-icc-source
Open

Add source for Invercargill City Council (NZ)#7312
etamtlosz wants to merge 3 commits into
mampfes:masterfrom
etamtlosz:add-icc-source

Conversation

@etamtlosz

Copy link
Copy Markdown

Summary

Adds a dedicated source script for Invercargill City Council (ICC), New Zealand.

Provider Details

Note regarding wastenet_org_nz

Invercargill City Council moved their bin collection services and search tools away from the older WasteNet Southland platform onto the council's dedicated website (icc.govt.nz). As a result, wastenet_org_nz no longer provides reliable data for Invercargill addresses. This new icc_govt_nz source directly interfaces with the council's active system.

Features & Testing

  • Tracks both Red Week (rubbish) and Yellow Week (recycling).
  • Handles edge cases where the council API drops same-day collections after 07:00 AM upon HA restart.
  • Includes network request timeout (30s).
  • Full TEST_CASES covering all collection days (Monday to Friday) included and verified against the live API.
  • Added UI configuration descriptions for Home Assistant Config Flow.

Type of change

  • New source
  • Bug fix / source fix
  • Documentation update
  • Other

Checklist

  • python -m pytest tests/test_source_components.py -q passes
  • ruff check --fix and ruff format run on changed source files
  • No generated files in diff (README.md, info.md, sources.json, translations/*.json — CI regenerates these post-merge)
  • doc/source/<name>.md created for new sources
  • TEST_CASES use real, publicly accessible addresses (not my own)

Implement source for Invercargill City Council rubbish collection, including API integration and collection date handling.
…tting

- Import and raise SourceArgumentNotFound instead of returning empty list
- Fix import order and line formatting to pass ruff pre-commit checks
@bbr111
bbr111 requested a lite review from Copilot September 6, 2026 20:22
@bbr111 bbr111 self-assigned this Sep 6, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants