Closed Mariusthvdb closed 6 months ago
see screen below
And where is the error?
Excellent! This is an issue with fold-entity-row. The log message is a warning about the card-mod intereface available to card authors is changed, but should be backwards compatible for a while. I actually forgot that fold-entity-row used this...
Did you add card-mod styles to anything in the fold-entity-row, and did they apply as expected?
right, should have issued at f-e-r....
yes, the mod is above and was applied correctly:
card_mod:
style: |
.label {
margin-left: 0px !important;
}
you need it at f-e-r?
Nah. I'll take care of it. Glad to hear it worked as intended.
this should be fixed in fold-entity-row shouldnt it? just asking to be sure, because card-mod 3.4.1 did not prevent this card-mod warning
just discovered this one too on picture-entity:
its not a custom card, unless it now is referring to the hui-element in:
- type: custom:hui-element
card_type: picture-entity
entity: camera.weerkaart_nl
show_name: false
show_state: false
<<: &style
card_mod:
style: |
ha-card {
box-shadow: none;
margin: 8px -16px -16px -16px;
}
again, the mod still works, the warning seems beyond the user to fix.
Yes. It has to be fixed by the card developer. Things will still work for at least six months, and I've added a limit so you should only ever see this warning once at a time.
cool, btw there's a tiny typo in the warning, should be 'relies'
Yes. It has to be fixed by the card developer. Things will still work for at least six months, and I've added a limit so you should only ever see this warning once at a time.
I get the same warning for Browser Mod (2.3.0), using the example at the bottom of this Page.
Card-mod warning
card-mod.js?hacstag=190927524342:1 You are using a custom card which relies on card-mod, and uses an outdated signature for applyToElement.
card-mod.js?hacstag=190927524342:1 The outdated signature will be removed at some point in the future. Hopefully the developer of your card will have updated their card by then.
card-mod.js?hacstag=190927524342:1 The card used card-mod to apply styles here: <browser-mod-popup class=​"undefined">​…​</browser-mod-popup>​
type: button
show_name: true
show_icon: true
tap_action:
action: fire-dom-event
browser_mod:
service: browser_mod.popup
data:
title: Teal background
content: Where did the dashboard go?
card_mod:
style:
ha-dialog$: |
div.mdc-dialog div.mdc-dialog__scrim {
background: rgba(0, 128, 128, 0.9);
}
My Home Assistant version: 2024.1.0b02
My lovelace configuration method (GUI or yaml):Yaml
What I am doing:
using custom:fold-entity-row
What I expected to happen: no error What happened instead: see screen below
Minimal steps to reproduce:
Error messages from the browser console:
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.