question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error while setting up sonoff platform for switch

See original GitHub issue

Home assistant: 0.109.6 HASS OS: no SLOW_SETUP_MAX_WAIT TypeError: string indices must be integers

Source: custom_components/sonoff/__init__.py:516
Integration: Switch (documentation, issues)
First occurred: 6:14:13 AM (1 occurrences)
Last logged: 6:14:13 AM

Error while setting up sonoff platform for switch
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT) File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for return fut.result() File "/config/custom_components/sonoff/switch.py", line 15, in async_setup_platform outlets_number = hass.data[SONOFF_DOMAIN].get_outlets(device) File "/config/custom_components/sonoff/__init__.py", line 516, in get_outlets if device['uiid'] in uiid_to_name.keys() and \ TypeError: string indices must be integers ```

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
peterbugacommented, May 15, 2020

it’ll have to wait now…

0reactions
fiservedpicommented, May 15, 2020

Also looks like some changes are coming down the pipe (of course!) Home Assistant 0.110.0b1 HASSIO: No

Source: components/switch/__init__.py:125
Integration: Switch (documentation, issues)
First occurred: 8:59:22 PM (2 occurrences)
Last logged: 8:59:22 PM

SwitchDevice is deprecated, modify SonoffSwitch to extend SwitchEntity
SwitchDevice is deprecated, modify SonoffDebugSwitch to extend SwitchEntity```
Read more comments on GitHub >

github_iconTop Results From Across the Web

Sonoff /eWeLink component for original firmware
Hello,. i have problem with HASSIO 0.84.3 and component. I try it, but still error. 2018-12-22 16:02:40 WARNING (MainThread) ...
Read more >
SONOFF DIY developer documentation
Do you want to control the SONOFF device via your own app or home automation platform? DIY Mode helps! The DIY Mode is...
Read more >
Reprogram Sonoff Smart Switch Web Server
In this post, you're going to learn how to flash custom firmware in the Sonoff device, so that you can control it with...
Read more >
eWeLink - Smart Home - Apps on Google Play
One app, countless devices eWeLink is the app platform that supports multiple brands of smart devices including SONOFF. It enables connections between ...
Read more >
Can Sonoff work with Home Assistant? - Home Tech Time
Smart switch are a nice to have when they work in isolation (e.g. switch lights on ... The first approach is to setup...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found