modify 修复前端展示配置与实际插件配置不一致的bug
This commit is contained in:
@@ -191,6 +191,8 @@ class AiboxSophonAdapterPlugin(Plugin):
|
||||
poll_interval=switch_cfg.get("poll_interval", 0.05),
|
||||
debounce=switch_cfg.get("debounce", 3),
|
||||
active_low=switch_cfg.get("active_low", False),
|
||||
device=switch_cfg.get("device"),
|
||||
key=switch_cfg.get("key"),
|
||||
)
|
||||
if not task_switch.start(asyncio.get_running_loop()):
|
||||
task_switch = None
|
||||
|
||||
Reference in New Issue
Block a user