From 6f4b492d501fe048c8a61cc6834c62d12118310e Mon Sep 17 00:00:00 2001 From: abearxiong Date: Tue, 23 Dec 2025 15:04:38 +0800 Subject: [PATCH] update --- test/common.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/common.ts b/test/common.ts index 596f435..da3940c 100644 --- a/test/common.ts +++ b/test/common.ts @@ -119,4 +119,9 @@ export const button = new ButtonHA({ token: process.env.HAAS_TOKEN || '', homeas // console.log(util.inspect(res, { depth: null })); // const entityType = await hacore.getEntityTypes(); -// console.log(showMore(entityType)); \ No newline at end of file +// console.log(showMore(entityType)); + + +const yinxiang = await hacore.getEntities((item) => item.attributes?.friendly_name?.includes?.('音箱')); + +console.log(showMore(yinxiang)); \ No newline at end of file