From b12c5c633a22180a4f3c8ecca089c3b2d4bbac4f Mon Sep 17 00:00:00 2001 From: xiaoshi <115949669+xiaoshi930@users.noreply.github.com> Date: Sun, 25 Jan 2026 16:45:51 +0800 Subject: [PATCH] Update xiaoshi-pad-climate-card.js --- xiaoshi-pad-climate-card.js | 55 +++++++++++++++++++++++++++++++++---- 1 file changed, 49 insertions(+), 6 deletions(-) diff --git a/xiaoshi-pad-climate-card.js b/xiaoshi-pad-climate-card.js index ae7cf99..cf8f294 100644 --- a/xiaoshi-pad-climate-card.js +++ b/xiaoshi-pad-climate-card.js @@ -681,6 +681,49 @@ class XiaoshiPadClimateCardEditor extends LitElement { + + +
+ +
+
+ + ${this._showTemperatureList ? html` +
+ ${this._filteredTemperatureEntities.map(entity => html` +
this._selectTemperature(entity.entity_id)} + > +
+ +
+
${entity.attributes.friendly_name || entity.entity_id}
+
${entity.entity_id}
+
+
+ ${this.config.temperature === entity.entity_id ? + html`` : ''} +
+ `)} + ${this._filteredTemperatureEntities.length === 0 ? html` +
未找到匹配的实体
+ ` : ''} +
+ ` : ''} +
+ +
+
${this.config.timer ? html` @@ -1964,7 +2007,7 @@ _renderExtraButtons(buttonType = 1) { return html`
${displayValue}
- ${displayName} + ${displayName}
`; @@ -1974,9 +2017,9 @@ _renderExtraButtons(buttonType = 1) { return html` `; @@ -1989,8 +2032,8 @@ _renderExtraButtons(buttonType = 1) {
this._handleExtraButtonClick(buttonEntityId, domain)} style="cursor: default; --bg-color: ${bgColor};"> -
${selectDisplayValue}
- ${displayName} +
${selectDisplayValue}
+ ${displayName}
`;