forked from HomeAssistant/xiaoshi-pad-card
Update xiaoshi-pad-card.js
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
console.info("%c 消逝卡-平板端 \n%c v 0.0.0 ", "color: red; font-weight: bold; background: black", "color: white; font-weight: bold; background: black");
|
console.info("%c 消逝卡-平板端 \n%c v 0.0.1 ", "color: red; font-weight: bold; background: black", "color: white; font-weight: bold; background: black");
|
||||||
|
|
||||||
const loadCards = async () => {
|
const loadCards = async () => {
|
||||||
await import('./xiaoshi-pad-grid-card.js');
|
await import('./xiaoshi-pad-grid-card.js');
|
||||||
await import('./xiaoshi-pad-slider-card.js');
|
await import('./xiaoshi-device-update-card.js');
|
||||||
|
await import('./xiaoshi-device-offline-card.js');
|
||||||
|
|
||||||
window.customCards = window.customCards || [];
|
window.customCards = window.customCards || [];
|
||||||
window.customCards.push(...cardConfigs);
|
window.customCards.push(...cardConfigs);
|
||||||
@@ -15,10 +16,17 @@ const cardConfigs = [
|
|||||||
description: '温度分布、湿度分布'
|
description: '温度分布、湿度分布'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'xiaoshi-pad-slider-card',
|
type: 'xiaoshi-update-card',
|
||||||
name: '消逝卡(平板端)-进度条',
|
name: '消逝卡HA更新监控卡片',
|
||||||
description: '进度条'
|
description: '显示需要更新的组件和版本',
|
||||||
|
preview: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'xiaoshi-offline-card',
|
||||||
|
name: '消逝卡HA离线设备卡片',
|
||||||
|
description: '显示所有离线的设备和实体',
|
||||||
|
preview: true
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
loadCards();
|
loadCards();
|
||||||
|
|||||||
Reference in New Issue
Block a user