robbrad / UKBinCollectionData

UK Council Bin Collection Data Parser Outputting Bin Data as a JSON
MIT License
119 stars 80 forks source link

Bug in MertonCouncil.py #609

Closed r-kc closed 5 months ago

r-kc commented 7 months ago

Name of Council

Merton

Issue Information

Home assistant fails with the error:

File "/config/custom_components/uk_bin_collection/sensor.py", line 93, in get_latest_collection_info bin_type = bin_data["type"]

In MertinCouncil.py I think line 42 needs to be changed from "bin_type": bin_type to "type": bin_type to fix this issue.

Verification

dp247 commented 6 months ago

@r-kc: is this still an issue? The code seems to work for some addresses, so I'd be interested to find out why not for yours. If you don't want to post your URL here, my email is on my GitHub page 😄

r-kc commented 5 months ago

This is still an issue, I have been manually changing the code after each update. I will send you my address.

dp247 commented 5 months ago

Cool, send me both the address and the code and I'll try work it out

dp247 commented 5 months ago

@r-kc: This'll fix it, just waiting for the merge :)