Skip to content

Commit

Permalink
Merge pull request #1468 from idominiki/main
Browse files Browse the repository at this point in the history
Update custom_card_paddy_dwd_pollen.yaml
  • Loading branch information
basbruss authored Jul 3, 2024
2 parents a6a8cab + 2e2201d commit 36f2416
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 36f2416

Please sign in to comment.