Skip to content

Commit

Permalink
Compare also state's attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
amitfin committed Nov 13, 2023
1 parent 2a24adf commit 69b6c18
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/panels/lovelace/cards/hui-map-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,7 @@ class HuiMapCard extends LitElement implements LovelaceCard {

return entity_ids.some(
(entity_id) =>
oldHass.states[entity_id]?.state !==
this.hass.states[entity_id]?.state ||
oldHass.states[entity_id] !== this.hass.states[entity_id] ||
oldHass.entities[entity_id]?.display_precision !==
this.hass.entities[entity_id]?.display_precision
);
Expand Down

0 comments on commit 69b6c18

Please sign in to comment.