consider these secrets:
style_label_margin:
style: |
.label {
margin-left: 0px !important;
}
# color: blue !important;
style_toggle_icon:
style:
ha-icon:
$: |
ha-svg-icon {
color: var(--primary-color);
width: 24px;
}
and this decluttering template:
card:
type: custom:fold-entity-row
card_mod: !secret style_toggle_icon
# style:
# ha-icon:
# $: |
# ha-svg-icon {
# color: var(--primary-color);
# width: 24px;
# }
head:
type: section
label: '[[name]]'
card_mod: &label
!secret style_label_margin
padding: 0
entities:
- entity: switch.[[id]]
secondary_info: last-changed
state_color: true
- entity: sensor.[[id]]_actueel
- entity: sensor.[[id]]_totaal
- type: custom:fold-entity-row
card_mod: !secret style_toggle_icon
head:
type: section
label: Details
card_mod: *label
padding: 0
entities:
-
does not transfer the top card_mod for style_toggle_icon. Ive tried many things, also use the verbose card_mod, but it simply does not work. the second one, on the style_label_margin is fine.
even more surprisingly, the nested identical mod ( Details) does work as supposed:
anyone else seeing this too?
probably need to file this in decluttering, because the identical mod is used in over 350 other places and working correctly. I just dont get why this would be the case. So hope anyone else seeing this can comment.