Skip to content
This repository was archived by the owner on Oct 8, 2020. It is now read-only.
This repository was archived by the owner on Oct 8, 2020. It is now read-only.

Background template reverts back to primary color rather than app-header-background #263

Closed
@SeanPM5

Description

@SeanPM5

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:

image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions