I’m migrating from openhab to homeassistant. I wrote a component that brings all openhab items into homeassistant. This lets me get everyone in the household using homeassistant, and I’ll comment each item out of openhab as I reconfigure it into homeassistant (or hide it if I still need it in openhab for an automation rule)
Error: File “/home/homeassistant/.homeassistant/custom_components/switch/openhab.py”, line 16, in setup_platform
_ for item in response.json()[‘item’]:_ TypeError: list indices must be integers, not str
Same for “sensor”: File “/home/homeassistant/.homeassistant/custom_components/sensor/openhab.py”, line 13, in setup_platform
_ for item in response.json()[‘item’]:_ TypeError: list indices must be integers, not str