Open kulmegil opened 1 year ago
Also on 2023.4.1
Confirmed, 2023.4.0
Also on 2023.4.5
Looks like https://github.com/thomasloven/lovelace-card-mod/blob/b8c48b925643389fea5b1c0185ad7e0cbbd2bb76/src/helpers.ts#L166 is trying to split each script tag's innerText on newline, but that's not how they're formatted anymore:
> document.querySelectorAll("script")[3].innerText.trim()
'import("/hacsfiles/lovelace-card-mod/card-mod.js");import("/local/custom_icons/custom_icons.js");import("/hacsfiles/iconset.js");'
From debugging, I'm seeing roughly the same as you @acshef:
"/hacsfiles/lovelace-card-mod/card-mod.jsimport("/hacsfiles/iconset.js");"
Oddly no ;
's between the statements though. I wonder where those imports are coming from.
Still having this issue
Still seeing this issue
+1
Home Assistant 2023.9.3 Supervisor 2023.09.2 Operating System 10.5 Frontend 20230911.0 - latest
+1 Home Assistant 2023.9.3 Supervisor 2023.09.2 Operating System 10.5 Frontend 20230911.0 - latest
Is this related to the poor performance as of late? A simple screen tilt triggers an update and brings the card-mod styles. (I'm sorry idk how to debug properly)
https://github.com/thomasloven/lovelace-card-mod/assets/1921626/9ba33d6b-d242-424f-81ae-de5ded60a01a
My Home Assistant version: 2023.4.0b5
My lovelace configuration method (GUI or yaml): gui
What I am doing: loading tab
What I expected to happen: Nothing. No bad performance warning in dev console when proper installation procedure is followed
What happened instead: Performance warning is always shown in dev console
Looks like
function getResources()
fromhelpers.ts
is returning invalid outputMinimal 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.