tuxuser / abfallapi_regioit_ha

Abfall API (RegioIT) custom component for home assistant - Get an alert when garbage collection is due
Apache License 2.0
10 stars 8 forks source link

[custom_components.abfallapi_regioit.sensor] No street with name #3

Closed northpower25 closed 4 years ago

northpower25 commented 4 years ago

at first great work! but i've got the following error [custom_components.abfallapi_regioit.sensor] No street with name Kaltenweide 1 - 156

but i see the street name in the resource link -

https://pi-abfallapp.regioit.de/abfall-app-pi/rest/orte/4888298/strassen

`

4888546 Kaltenweide 1 - 156 4888298 Elmshorn` My config in configuration.yaml > sensor: > - platform: abfallapi_regioit > name: muellabfuhr > scan_interval: 3600 > anbieter_id: Pinneberg > ort: 'Elmshorn' > strasse: 'Kaltenweide 1 - 156' any idea what's going wrong? if it is possible, it would be great if you could make an GUI for the configuration of this great integration.
tuxuser commented 4 years ago

Found the issue This is example json output for ``

  {
    "id": 4888546,
    "name": "Kaltenweide     1 - 156",
    "hausNrList": [],
    "ort": {
      "id": 4888298,
      "name": "Elmshorn"
    }
  }

Notice the unnecessary whitespaces? No clue why the data is formatted like that, but it is solvable by replacing multiple whitespaces with a single one

tuxuser commented 4 years ago

Fixed