modify 修复前端展示配置与实际插件配置不一致的bug

This commit is contained in:
2026-09-17 15:34:34 +08:00
parent 293254c61a
commit e0211105bd
6 changed files with 261 additions and 40 deletions
+2
View File
@@ -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