修复竖板插排(mul:3插孔+4USB)的控制问题:
打开/config/deps/lib/python3.9/site-packages/pykonkeio/device/basemul.py
将第46行:for index, t in enumerate(res.split(',')): 修改为 for index, t in enumerate(res.split(',')[:-3]):
保存重启,全部按键包括usb的控制都将修复。
Error while setting up konke platform for switch
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/konke/switch.py", line 52, in async_setup_platform
await device.update()
File "/usr/local/lib/python3.9/site-packages/pykonkeio/device/basetoggle.py", line 26, in update
self.status = await self.send_message('check', **kwargs)
File "/usr/local/lib/python3.9/site-packages/pykonkeio/device/base.py", line 29, in send_message
raise error.DeviceOffline('device is offline')
pykonkeio.error.DeviceOffline: Error: device is offline