mampfes / hacs_waste_collection_schedule

Home Assistant integration framework for (garbage collection) schedules
MIT License
1.11k stars 669 forks source link

Fix: Junaavfall_se date format parsing #3034

Closed ReneNulschDE closed 1 week ago

ReneNulschDE commented 1 week ago

This PR fixes #2996.

Added handling for "NextWastePickup":"v47 Nov 2024", v47 is the week number. Added special test case

Tests:

testing source juneavfall_se ...
  found 3 entries for Storgatan 12
    2024-11-25 : FNI Kärl 1
    2024-12-09 : FNI Kärl 2
    2025-04-23 : Trädgårdsavfall
  found 2 entries for Smedjegatan 20
    2024-11-18 : Matavfall
    2024-11-18 : Restavfall
  found 7 entries for Västra Ubbarp 20, Barnarp
    2024-11-15 : FNI Kärl 1
    2024-11-25 : FNI Kärl 2
    2024-11-15 : Restavfall
    2024-11-15 : Restavfall
    2024-11-15 : Matavfall
    2024-11-15 : Matavfall
    2024-11-18 : Slam
5ila5 commented 1 week ago

Thanks for your contribution