Skip to content

Commit

Permalink
show
Browse files Browse the repository at this point in the history
  • Loading branch information
RFDarter committed Dec 23, 2024
1 parent 029029c commit d5f318b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/v3/src/esp-entity-table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -607,16 +607,16 @@ class ActionRenderer {

render_lock() {
if (!this.entity) return;
return html`${this._actionButton(this.entity, "🔐", "lock")}
${this._actionButton(this.entity, "🔓", "unlock")}
return html`${this._actionButton(this.entity, "🔐", "lock", this.entity.state === "LOCKED")}
${this._actionButton(this.entity, "🔓", "unlock", this.entity.state === "UNLOCKED")}
${this._actionButton(this.entity, "↑", "open")} `;
}

render_cover() {
if (!this.entity) return;
return html`${this._actionButton(this.entity, "↑", "open")}
${this._actionButton(this.entity, "☐", "stop")}
${this._actionButton(this.entity, "↓", "close")}`;
return html`${this._actionButton(this.entity, "↑", "open", this.entity.state === "OPEN")}
${this._actionButton(this.entity, "☐", "stop", )}
${this._actionButton(this.entity, "↓", "close", this.entity.state === "CLOSED")}`;
}

render_button() {
Expand Down

0 comments on commit d5f318b

Please sign in to comment.