From 69b6c18892bab99e985510fbb8f19b260f953f4f Mon Sep 17 00:00:00 2001 From: amittein Date: Mon, 13 Nov 2023 14:38:32 +0000 Subject: [PATCH] Compare also state's attributes --- src/panels/lovelace/cards/hui-map-card.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/panels/lovelace/cards/hui-map-card.ts b/src/panels/lovelace/cards/hui-map-card.ts index 9b2d7ab72cae..3d76d7ca65ef 100644 --- a/src/panels/lovelace/cards/hui-map-card.ts +++ b/src/panels/lovelace/cards/hui-map-card.ts @@ -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 );