From 9fa2ee224310c9ba74ed0af94d9f44ee536ebffb Mon Sep 17 00:00:00 2001 From: Christopher Viel Date: Wed, 21 Aug 2024 22:04:23 -0400 Subject: [PATCH] Use picture from person entity in person card --- dashboards/cards/household.yaml | 2 -- dashboards/cards/person.yaml.j2 | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/dashboards/cards/household.yaml b/dashboards/cards/household.yaml index 133987fc..b3f1667f 100644 --- a/dashboards/cards/household.yaml +++ b/dashboards/cards/household.yaml @@ -6,11 +6,9 @@ cards: file: person.yaml.j2 variables: battery_entity: sensor.chris_pixel_6_battery_level - image: /local/secrets/chris.webp person_entity: person.chris - !template file: person.yaml.j2 variables: battery_entity: sensor.karine_pixel_7_battery_level - image: /local/secrets/karine.webp person_entity: person.karine diff --git a/dashboards/cards/person.yaml.j2 b/dashboards/cards/person.yaml.j2 index 27a14faa..e6827556 100644 --- a/dashboards/cards/person.yaml.j2 +++ b/dashboards/cards/person.yaml.j2 @@ -1,5 +1,5 @@ type: picture-elements -image: "{{ image }}" +image_entity: "{{ person_entity }}" card_mod: style: | .element[class~=element] {