更新版本号,重构核心类,移除未使用的自动化和事件功能,优化灯光管理,调整测试用例以适应新结构
This commit is contained in:
@@ -2,6 +2,7 @@ import { hacore, showMore } from "./common.ts";
|
||||
import Fuse from 'fuse.js';
|
||||
|
||||
const devices = await hacore.getInfoList();
|
||||
console.log(showMore(devices));
|
||||
const fuse = new Fuse(devices, {
|
||||
keys: ['name'], // 搜索字段
|
||||
threshold: 0.4, // 匹配宽松度:0~1,越小越严格
|
||||
|
||||
Reference in New Issue
Block a user