SanderBlom / BIR_Waste_Watch

An home assistant integration that scrapes bir.no for your waste collection dates (mixed, plastic, paper, etc)
0 stars 0 forks source link

Issue with year calculation for pickup dates #7

Closed SanderBlom closed 10 months ago

SanderBlom commented 10 months ago

There's a bug in the garbage pickup date feature. When trash pickups span December and January (like mixed waste in December and paper in January), the integration incorrectly shows January pickups with the current year (e.g., 04 Jan 2023 instead of 04 Jan 2024). This happens because the source only provides day and month, not the year. We need to tweak the logic to correctly handle year changes for January pickups.

SanderBlom commented 10 months ago

This was resolved in v1.1.2