mampfes / hacs_waste_collection_schedule

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

[Bug]: Mid Sussex (UK) "list index out of range" when adding address #2464

Open lewisburgess opened 2 months ago

lewisburgess commented 2 months ago

I Have A Problem With:

Sensor configuration

What's Your Problem

When trying to add an address in via the GUI, I get "The source returned an invalid response: "list index out of range". Please check the provided arguments and try again."

I've tried multiple addresses for this provider, all fail.

I have tried a different provider with a test address (obviously outside of Mid Sussex), this works.

Checked that Mid Sussex's website is working for my address and the URL hasn't changed.

Thank you :)

Source (if relevant)

midsussex.gov.uk

Logs

No response

Relevant Configuration

No response

Checklist Source Error

Checklist Sensor Error

Required

5ila5 commented 2 months ago

I can not reproduce this behavior with our test cases. Can you give me an address, that has this problem?

Tested with:

[
    {"house_number": "6", "street": "Withypitts", "postcode": "RH10 4PJ"},
    {
        "house_name": "Oaklands",
        "street": "Oaklands Road",
        "postcode": "RH16 1SS",
    },
    {"house_number": 9, "street": "Bolnore Road", "postcode": "RH16 4AB"},
    {"address": "HAZELMERE REST HOME, 21 BOLNORE ROAD RH16 4AB"}
]