lovelace-card-tools
lovelace-card-tools copied to clipboard
JS Console shown errors, but no visual problems in UI
The problems shown in fold-entity-row and layout-card: Chrome output:
CARD-TOOLS 2.1.1 IS INSTALLED  card-tools.js?v=2.1.1:1
DeviceID: 0445b6ee-d8b827ee
LAYOUT-CARD 1.1.0 IS INSTALLED layout-card.js?v=1.1.0:60
card-tools.js?v=2.1.1:1 Uncaught (in promise) TypeError: Object(...)(...)._addCard is not a function
at card-tools.js?v=2.1.1:1
at new Promise (<anonymous>)
at Module.<anonymous> (card-tools.js?v=2.1.1:1)
at r (card-tools.js?v=2.1.1:1)
at card-tools.js?v=2.1.1:1
at card-tools.js?v=2.1.1:1
2
0:1 Unchecked runtime.lastError: The message port closed before a response was received.
fold-entity-row.js?v=1.0.0:1 Uncaught (in promise) TypeError: Cannot read property 'then' of undefined
at HTMLElement.firstUpdated (fold-entity-row.js?v=1.0.0:1)
at HTMLElement.performUpdate (updating-element.ts:718)
at HTMLElement._enqueueUpdate (updating-element.ts:653)
FireFox output:
CARD-TOOLS 2.1.1 IS INSTALLED
DeviceID: a5b10759-e5a4fa21 card-tools.js:1:15754
LAYOUT-CARD 1.1.0 IS INSTALLED <empty string> layout-card.js:60:145
TypeError: Object(...)(...)._addCard is not a function card-tools.js:1:14088
TypeError: e.updateComplete is undefined fold-entity-row.js:1:5225
Same in chrome here
Same here with chrome.
CARD-TOOLS 2.1.2 IS INSTALLED
DeviceID: 29831877-f7eed192
Uncaught (in promise) TypeError: Object(...)(...)._addCard is not a function
at card-tools.js:formatted:601
at new Promise (<anonymous>)
at Module.<anonymous> (card-tools.js:formatted:586)
at r (card-tools.js:formatted:11)
at card-tools.js:formatted:71
at card-tools.js:formatted:72
Same error here with Opera.
Same problem, _addCard method is called on the hui-panel-view element and fails.
Same problem, with all browsers (safari, chrome, firefox..)
Uncaught (in promise) TypeError: Object(...)(...)._addCard is not a function
at card-tools.js:formatted:601
at new Promise (<anonymous>)
at Module.<anonymous> (card-tools.js:formatted:586)
at r (card-tools.js:formatted:11)
at card-tools.js:formatted:71
at card-tools.js:formatted:72
Home Assistant 0.109.0b4
Frontend-Version: 20200427.0 - latest
CARD-TOOLS 2.1.2 IS INSTALLED DeviceID: d00be206-f58e8df5
Systemzustand
arch x86_64
dev false
docker false
hassio false
os_name Linux
os_version 5.3.0-46-generic
python_version 3.7.5
timezone Europe/Vaduz
version 0.109.0b4
virtualenv true
Lovelace
dashboards 1
mode yaml
resources 17
views 9
after updating to the latest card-tools yesterday, I see this on each view load in Safari/Mac HA 0.111.4:

I've seen the unexplained error on the hui-weather-forecast-card before, (and filed an issue on the hui-element card, because that was listed in the console) but this seems to be really tied to updating the card-tools. I DONT use any plant-status card at all.
update
as a confirmation of this error being related to card-tools: taking card-tools out of resources, makes the errors disappear
also see https://github.com/home-assistant/frontend/issues/6261
Same problem here.
HA 113.0; Uncaught (in promise) TypeError: Object(...)()._addCard is not a function
Wouter