Skip to content

Commit

Permalink
Update custom_card_paddy_dwd_pollen.yaml
Browse files Browse the repository at this point in the history
Fix for custom_card_paddy_dwd_pollen as state based img_cell coloring is at the false card.
  • Loading branch information
idominiki authored Feb 28, 2024
1 parent 77424a7 commit 2e2201d
Showing 1 changed file with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,6 @@ custom_card_paddy_dwd_pollen:
card:
type: "custom:button-card"
entity: "[[[ return entity.entity_id ]]]"
item2:
card:
type: "custom:button-card"
entity: "[[[ return entity.entity_id ]]]"
label: >
[[[
if (entity.state == "6"){
return variables.custom_card_paddy_dwd_pollen_6;
} else if (entity.state == "5"){
return variables.custom_card_paddy_dwd_pollen_5;
} else if (entity.state == "4"){
return variables.custom_card_paddy_dwd_pollen_4;
} else if (entity.state == "3"){
return variables.custom_card_paddy_dwd_pollen_3;
} else if (entity.state == "2"){
return variables.custom_card_paddy_dwd_pollen_2;
} else if (entity.state == "1"){
return variables.custom_card_paddy_dwd_pollen_1;
}
return variables.custom_card_paddy_dwd_pollen_none;
]]]
state:
- value: "6"
styles:
Expand Down Expand Up @@ -67,3 +46,24 @@ custom_card_paddy_dwd_pollen:
styles:
icon:
- color: "rgba(var(--color-theme),0.2)"
item2:
card:
type: "custom:button-card"
entity: "[[[ return entity.entity_id ]]]"
label: >
[[[
if (entity.state == "6"){
return variables.custom_card_paddy_dwd_pollen_6;
} else if (entity.state == "5"){
return variables.custom_card_paddy_dwd_pollen_5;
} else if (entity.state == "4"){
return variables.custom_card_paddy_dwd_pollen_4;
} else if (entity.state == "3"){
return variables.custom_card_paddy_dwd_pollen_3;
} else if (entity.state == "2"){
return variables.custom_card_paddy_dwd_pollen_2;
} else if (entity.state == "1"){
return variables.custom_card_paddy_dwd_pollen_1;
}
return variables.custom_card_paddy_dwd_pollen_none;
]]]

0 comments on commit 2e2201d

Please sign in to comment.