Skip to content

Commit

Permalink
Use correct icon for bypass
Browse files Browse the repository at this point in the history
  • Loading branch information
bolkedebruin committed Apr 14, 2024
1 parent 3837c69 commit 12139ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "erhv-card",
"version": "1.0.11",
"version": "1.0.12",
"description": "A homeassistant heat exchange card - for, for example, the ComfoAir, WHR, Swegon Casa ",
"main": "dist/erhv-card.js",
"source": "src/main.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/erhv-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,9 @@ export class ERHVCard extends LitElement implements LovelaceCard {
if (!this.hass || !this._config || !this._config.bypass_state) {
return html``;
}
if (this.hass.states[this._config.bypass_state].state == 'open') {
if (this.hass.states[this._config.bypass_state].state == 'on') {
return html`
<ha-icon icon="mdi:electric-switch"></ha-icon>`;
<ha-icon icon="mdi:electric-switch-closed"></ha-icon>`;
} else {
return html`
<ha-icon class="inactive" icon="mdi:electric-switch"></ha-icon>`;
Expand Down

0 comments on commit 12139ac

Please sign in to comment.