New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Card-mod card backgrounds do not update #163
Comments
This only appears to be an issue in Firefox. Safari and Chrome load the theme as expected. |
Hi. I got the same behavior, but for view backgrounds (not updating the background when theme is changed by automation). This is since 2021.11.5 but since that upgrade I also upgraded to card-mod 3.1.1 and I switched from a
Night theme is same, but with other image. I update via |
I did find a clue here. Someone had background issue when only having the |
@thomasloven I hate to be a pest but can anything be done about this? Like gurbyz above using both loading methods does not fix this for me. |
Turning on "Automatically close connection" in my profile negates this issue as the page reloads when I switch to the tab showing home assistant. |
I personally can't use this solution because I get the issue on a dashboard monitor that is in kiosk mode (no use of browser tabs there). But, inspired by your reload, I found another solution. Not so elegant to look at, because the dashboard just refreshes its complete browser. I'm using another integration of @thomasloven for this: browser_mod I added this service call to the 'select theme' automations action:
|
Can you please check if this is still a problem in 3.4.0? |
It is indeed fixed. Thank you Thomas. 👍 |
My Home Assistant version: 2021.11.5
My lovelace configuration method (GUI or yaml): GUI
What I am doing: Changing card-mod themes with an automation.
What I expected to happen: Card backgrounds to change.
What happened instead: Card backgrounds do not update until the page is refreshed. Behaviour was introduced in card-mod v3.1.1 and has been absent since this issue was previously resolved here: #66 (comment)
Day theme:
Night theme selected but card backgrounds do not update:
After a page refresh the backgrounds are displayed correctly:
Minimal steps to reproduce: See config below
The issue occurs when changing the theme with an automation. Only the card backgrounds fail to update.
automation
input select
themes
Error messages from the browser console: none
By putting an X in the boxes ([]) below, I indicate that I:
Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).
Have made sure I am using the latest version of the plugin.
Have followed the troubleshooting steps of the "Common Problems" section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.
Understand that leaving one or more boxes unticked or failure to follow the template above may increase the time required to handle my bug-report, or cause it to be closed without further action.
The text was updated successfully, but these errors were encountered: