diff --git a/xiaoshi-pad-climate-card.js b/xiaoshi-pad-climate-card.js index 3b48975..fdaade0 100644 --- a/xiaoshi-pad-climate-card.js +++ b/xiaoshi-pad-climate-card.js @@ -1980,11 +1980,9 @@ _renderExtraButtons(buttonType = 1) { if (name.includes('防冻')) return isActive ? 'mdi:snowflake' : 'mdi:snowflake-off'; if (name.includes('防烫伤')) return isActive ? 'mdi:fire' : 'mdi:fire-off'; if (name.includes('按键锁')) return isActive ? 'mdi:lock-open' : 'mdi:lock-open-variant'; - if (name.includes('息屏')) return 'mdi:lightbulb-off'; return null; }; - switch(domain) { case 'switch': case 'light': @@ -2011,7 +2009,7 @@ _renderExtraButtons(buttonType = 1) { return html`
`; @@ -2029,15 +2027,14 @@ _renderExtraButtons(buttonType = 1) { `; case 'select': - const options = entity.attributes.options || []; - const firstOption = options[0] || ''; - const selectDisplayValue = firstOption.slice(0, 4); + const state = entity.state || ''; + const selectDisplayValue = state.slice(0, 4); return html` `;