core: Buienradar fails to load

The problem

When adding the integration Buienradar, it fails to load since version 2021.6.x. Deleting this integration, reinstalling this integration or reloading and restarting HA does not help. I had it previously directly loaded via configuration.yaml, but this version 2021.6 mentioned to remove that part and to load it via configuration - integrations. buienradar

What is version of Home Assistant Core has the issue?

2021.6.x

What was the last working version of Home Assistant Core?

2021.5.5

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Buienradar

Link to integration documentation on our website

https://www.home-assistant.io/integrations/buienradar/

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.setup
Source: components/buienradar/__init__.py:140
First occurred: June 6, 2021, 9:15:16 PM (1 occurrences)
Last logged: June 6, 2021, 9:15:16 PM

Error during setup of component buienradar
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 248, in _async_setup_component
    result = await task
  File "/usr/src/homeassistant/homeassistant/components/buienradar/__init__.py", line 34, in async_setup
    sensor_configs = _filter_domain_configs(config, "sensor", DOMAIN)
  File "/usr/src/homeassistant/homeassistant/components/buienradar/__init__.py", line 140, in _filter_domain_configs
    configs += [x for x in config[entry] if x["platform"] == platform]
  File "/usr/src/homeassistant/homeassistant/components/buienradar/__init__.py", line 140, in <listcomp>
    configs += [x for x in config[entry] if x["platform"] == platform]
TypeError: string indices must be integers

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 20 (8 by maintainers)

Most upvoted comments

I also managed to get it working by moving my MQTT sensors to the proposed format. Many thanks to Rob.

@RobBie1221, Thanks alot ! i have changed my

sensor: platform:

to

sensor:

  • platform:

And it fully works now ! Thanks alot !