Closed qupada closed 7 months ago
Do you see same with any conventional card?
Amended the dashboard to just a single glance card:
- title: Test
path: test
badges: []
cards:
- type: glance
entities:
- entity: light.office_ceiling
card_mod:
style: |
ha-card {
border: none;
padding: 0 !important;
}
It had the same behaviour the first time I loaded it, then I hard reloaded the tab a few times and it didn't do it again. So I'm going to have to say probably not.
Potentially then, bad behaviour with the nesting in room-card?
I just discovered this, which sounds like the same symptom, but apparently a vastly different cause: https://github.com/marcokreeft87/room-card/issues/290
Not many conventional cards may contain other cards - vertical(horizontal)-stack, picture-elements, grid; also some custom cards like stack-in-card. For all of them it is possible to define card-mod on the inner card's level like:
type: some_outer_card
cards:
- type: some_inner_card
card_mod:
style: |
ha-card { ... }
Since I am not using room-card - cannot say anything bad about it...
Anyway - suggest to rename the issue to reflect the fact that this happens with some particular custom card... Also, may be you should ask this custom card's developer about issues with card-mod?
Filed as https://github.com/marcokreeft87/room-card/issues/291 with a link back here :)
The issue appears to have been introduced with room-card 1.08.01, reverting to 1.08.00 has for now remedied it.
Thanks for your help @ildar170975, I feel like I should probably close this issue as the problem appears to be on the other side of the fence.
My Home Assistant version: 2023.11.2
My lovelace configuration method (GUI or yaml): GUI
What I am doing: Minimal editing of border and padding to remove interior borders inside nested cards (using room-card with nested glance and others).
Nested cards have the following added, to remove interior borders and condense the layout. Some other minor tweaks, but vast majority is just this:
What I expected to happen: Normal CSS modification.
What happened instead:
Removing card-mod immediately resolves the issue.
Minimal steps to reproduce: Newly-created dashboard. One room-card, one nested glance card, one light entity:
This configuration started at 24MB of memory usage, and in the around 15 minutes it's taken to write this bug report is at 91MB.
Error messages from the browser console: None. (Previously did receive the "Performance improvements" warning, but no other client-side errors)
Home assistant log shows a "slow client" log entry:
By putting an X in the boxes ([]) below, I indicate that I:
[X] Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).
[X] Have made sure I am using the latest version of the plugin.
[X] Have followed the troubleshooting steps of the "Common Problems" section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.
[X] 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.