Background template reverts back to primary color rather than app-header-background #263
Description
I have a pretty simple config here that will turn the header red when guest mode is on.
custom_header:
background: '{% if states.input_boolean.guest_mode.state == "on" %}#ff0000{% endif %}'
However when guest mode off (95% of times) it seems to make the header use --primary-color
rather than --app-header-background-color
... So on the default dark theme, rather than having the header be black as it's supposed to be, like this:
Custom Header instead seems to make the header blue (primary color), an incorrect behavior. App-header-background should take priority over primary-color as far as I know.
Hope this made sense? I'm sure I could fix this on my end with a more robust template, but this seems like a possible bug in Custom Header.
Home Assistant version: first noticed in 0.114 (dark theme)
Browser version: Chrome, iOS mobile apps
CH version: 1.7.7