diff --git a/src/common/style/icon_color_css.ts b/src/common/style/icon_color_css.ts index 58732e7b17..4672d0ca9c 100644 --- a/src/common/style/icon_color_css.ts +++ b/src/common/style/icon_color_css.ts @@ -15,7 +15,7 @@ export const iconColorCSS = css` ha-icon[data-domain="media_player"][data-state="on"], ha-icon[data-domain="media_player"][data-state="paused"], ha-icon[data-domain="media_player"][data-state="playing"], - ha-icon[data-domain="script"][data-state="running"], + ha-icon[data-domain="script"][data-state="on"], ha-icon[data-domain="sun"][data-state="above_horizon"], ha-icon[data-domain="switch"][data-state="on"], ha-icon[data-domain="timer"][data-state="active"], diff --git a/src/components/entity/state-badge.ts b/src/components/entity/state-badge.ts index 4711bf4dfc..0b67adcc6a 100644 --- a/src/components/entity/state-badge.ts +++ b/src/components/entity/state-badge.ts @@ -115,7 +115,7 @@ export class StateBadge extends LitElement { // eslint-disable-next-line console.warn(errorMessage); } - // lowest brighntess will be around 50% (that's pretty dark) + // lowest brightness will be around 50% (that's pretty dark) iconStyle.filter = `brightness(${(brightness + 245) / 5}%)`; } } diff --git a/src/panels/lovelace/entity-rows/hui-script-entity-row.ts b/src/panels/lovelace/entity-rows/hui-script-entity-row.ts index ea348d0bdf..ede34bc208 100644 --- a/src/panels/lovelace/entity-rows/hui-script-entity-row.ts +++ b/src/panels/lovelace/entity-rows/hui-script-entity-row.ts @@ -54,7 +54,8 @@ class HuiScriptEntityRow extends LitElement implements LovelaceRow { ${stateObj.state === "on" ? html` - ${(stateObj.attributes.current || 0) > 0 + ${stateObj.attributes.mode !== "single" && + (stateObj.attributes.current || 0) > 0 ? this.hass.localize( "ui.card.script.cancel_multiple", "number", diff --git a/src/state-summary/state-card-script.ts b/src/state-summary/state-card-script.ts index 44e14d0aee..3bb84d9933 100644 --- a/src/state-summary/state-card-script.ts +++ b/src/state-summary/state-card-script.ts @@ -33,7 +33,8 @@ export class StateCardScript extends LitElement { > ${stateObj.state === "on" ? html` - ${(stateObj.attributes.current || 0) > 0 + ${stateObj.attributes.mode !== "single" && + (stateObj.attributes.current || 0) > 0 ? this.hass.localize( "ui.card.script.cancel_multiple", "number",