mirror of
https://github.com/xiaoshi930/xiaoshi-pad-card.git
synced 2025-11-28 16:49:42 +00:00
Update xiaoshi-device-update-card.js
This commit is contained in:
@@ -523,6 +523,11 @@ export class XiaoshiUpdateCard extends LitElement {
|
|||||||
return; // 跳过此更新
|
return; // 跳过此更新
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 新增规则:如果skipped_version为null情况下,当latest_version !== installed_version时,
|
||||||
|
// 且实体状态为off时,有可能是安装的版本比latest_version还高,这种不算更新的实体
|
||||||
|
if (attributes.skipped_version === null && entity.state === 'off') {
|
||||||
|
return; // 跳过此更新
|
||||||
|
}
|
||||||
|
|
||||||
const updateData = {
|
const updateData = {
|
||||||
name: attributes.friendly_name || entity.entity_id.replace('update.', ''),
|
name: attributes.friendly_name || entity.entity_id.replace('update.', ''),
|
||||||
|
|||||||
Reference in New Issue
Block a user