eyesoft / home_assistant_min_renovasjon

Home Assistant integration of the Min Renovasjon app
MIT License
32 stars 22 forks source link

Error while setting up platform min_renovasjon #1

Closed areeeee closed 5 years ago

areeeee commented 5 years ago

Is this component working? This would be awesome to implement in HA! I've got the streetcode from vegvesen.no (just the numbers) and county_id from kommunenummer. I'm on HA version 0.91.2 and get the following error:

Error while setting up platform min_renovasjon
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 126, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=hass.loop)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 416, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/min_renovasjon/sensor.py", line 20, in setup_platform
    min_renovasjon = hass.data[DATA_MIN_RENOVASJON]
KeyError: 'data_min_renovasjon'
adamchengtkc commented 5 years ago

See this https://community.home-assistant.io/t/min-renovasjon/115406/10?u=kiucheng