Update xiaoshi-device-update-card.js

This commit is contained in:
xiaoshi
2025-11-29 00:07:04 +08:00
committed by GitHub
parent f71e51029c
commit 6f58598f54

View File

@@ -523,6 +523,11 @@ export class XiaoshiUpdateCard extends LitElement {
return; // 跳过此更新
}
}
// 新增规则如果skipped_version为null情况下当latest_version !== installed_version时
// 且实体状态为off时有可能是安装的版本比latest_version还高这种不算更新的实体
if (attributes.skipped_version === null && entity.state === 'off') {
return; // 跳过此更新
}
const updateData = {
name: attributes.friendly_name || entity.entity_id.replace('update.', ''),