Logger: homeassistant.components.switch
Source: custom_components/ezviz/switch.py:286
Integration: 开关 (documentation, issues)
First occurred: 上午11:50:56 (1 occurrences)
Last logged: 上午11:50:56
Error while setting up ezviz platform for switch
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 193, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/ezviz/switch.py", line 63, in setup_platform
switches.append(EZVIZSwitch(kind, scan_interval,
File "/config/custom_components/ezviz/switch.py", line 126, in __init__
self.update()
File "/config/custom_components/ezviz/switch.py", line 286, in update
if result['switchInfos'][int(SWITCH_TYPES[self._kind][4])]['enable']:
IndexError: list index out of range