Skip to content

Commit

Permalink
fix: use lock entity rather than binary_sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienbrault committed Oct 24, 2023
1 parent 8c0d1a5 commit 7d203c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cards/AreaCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ class AreaCard extends AbstractCard {
}

if (!card.badge_icon) {
const lock = this.options?.lock || Helper.getStateEntities(this.entity, "lock")[0]?.entity_id;
const window = this.options?.window || Helper.getStateEntities(this.entity, "binary_sensor", "window")[0]?.entity_id;
const lock = this.options?.lock || Helper.getStateEntities(this.entity, "binary_sensor", "lock")[0]?.entity_id;
const door = this.options?.door || Helper.getStateEntities(this.entity, "binary_sensor", "door")[0]?.entity_id;

let badgeConditions = []
Expand Down

0 comments on commit 7d203c5

Please sign in to comment.