asantaga / lightwaverf_HA_EnergySensor

Home Assistant Sensor for the LightwaveRF energy monitor
MIT License
5 stars 3 forks source link

broken in 0.96.x #5

Closed asantaga closed 4 years ago

asantaga commented 4 years ago

in 0.96.x i get the error

Error during setup of component lightwaverf_energy
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/setup.py", line 156, in _async_setup_component
    component.setup, hass, processed_config)  # type: ignore
  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/lightwaverf_energy/__init__.py", line 27, in setup
    hass.data[DATA_KEY] = config[DOMAIN][CONF_SCAN_INTERVAL]
TypeError: list indices must be integers or slices, not str