+ ${this._loading ?
+ html`
HA版本信息加载中...
` :
+
+ (this._haUpdates.length === 0 && this._otherUpdates.length === 0) ?
+ html`
✅ 所有组件都是最新版本
` :
+ html`
+ ${this._haUpdates.length > 0 ? html`
+
+
+ • HA版本更新
+ ${this._haUpdates.length}
+
+
+ ${this._haUpdates.map(update => html`
+
this._handleEntityClick(update)}>
+
+
+
+
+
${update.name}
+
+ 当前版本: ${update.current_version} → 最新版本: ${update.latest_version}
+ ${update.skipped_version ? html` 已跳过版本: ${update.skipped_version}` : ''}
+
+
+
this._handleConfirmUpdate(update, e)}>
+ 立即更新
+
+
+ `)}\n ` : ''}
+
+ ${this._otherUpdates.length > 0 ? html`
+
+
+ • HACS更新
+ ${this._otherUpdates.length}
+
+
+ ${this._otherUpdates.map(update => html`
+
this._handleEntityClick(update)}>
+
+
+
+
+
${update.name}
+
+ 当前版本: ${update.current_version} → 最新版本: ${update.latest_version}
+ ${update.skipped_version ? html` 已跳过版本: ${update.skipped_version}` : ''}
+
+
+
this._handleConfirmUpdate(update, e)}>
+ 立即更新
+
+
+ `)}\n ` : ''}
+ `
+ }
+
+ ${this._loading ?
+ html`
设备和实体加载中...
` :
+
+ (this._offlineDevices.length === 0 && this._offlineEntities.length === 0) ?
+ html`
✅ 所有设备和实体都在线
` :
+ html`
+ ${this._offlineDevices.length > 0 ? html`
+
+
+ • 离线设备
+ ${this._offlineDevices.length}
+
+
+ ${this._offlineDevices.map(device => html`
+
this._handleDeviceClick(device)}>
+
+
+
+
+
${device.name}
+
+ ${device.manufacturer && device.model ?
+ `${device.manufacturer} ${device.model}` :
+ device.manufacturer || device.model || '未知设备'}
+ ${device.entities ? `• ${device.entities.length} 个实体` : ''}
+
+
+
+ ${this._formatLastSeen(device.last_seen)}
+
+
+ `)}\n ` : ''}
+
+ ${this._offlineEntities.length > 0 ? html`
+
+
+ • 离线实体
+ ${this._offlineEntities.length}
+
+
+ ${this._offlineEntities.map(entity => html`
+
this._handleEntityClick(entity)}>
+
+
+
+
+
${entity.friendly_name}
+
+ ${entity.entity_id}
+ ${entity.platform ? `• ${entity.platform}` : ''}
+ ${entity.unit_of_measurement ? `• ${entity.unit_of_measurement}` : ''}
+
+
+
+ ${this._formatLastSeen(entity.last_updated)}
+
+
+ `)}\n ` : ''}
+ `
+ }
+
+
+
+