SNoof85 / lovelace-tempometer-gauge-card-deprecated

Home Assistant Lovelace custom card with Barometer, Thermomer themes and customs themes as well !
102 stars 32 forks source link

Fixed "TypeError: Cannot read property 'split' of undefined" #26

Closed p0l0 closed 3 years ago

p0l0 commented 3 years ago

When no 'entity_min' or/and 'entity_max' is defined, the card shows following error "Cannot read property 'split' of undefined" and is not rendered.

card custom:tempometer-gauge-card TypeError: Cannot read property 'split' of undefined at HTMLElement._splitEntityAndAttribute (tempometer-gauge-card.js:267) at HTMLElement.setConfig (tempometer-gauge-card.js:32) at s (chunk.53174295df05176b2339.js:454) at chunk.53174295df05176b2339.js:454 at u (chunk.53174295df05176b2339.js:454) at c (chunk.53174295df05176b2339.js:454) at o (chunk.53174295df05176b2339.js:454) at HTMLElement.value (chunk.a8fc15b8e5d83f800941.js:2785) at HTMLElement.value (chunk.a8fc15b8e5d83f800941.js:2785) at HTMLElement.t.addEventListener.once (chunk.a8fc15b8e5d83f800941.js:2785)

SNoof85 commented 3 years ago

Thanks, did not checked that 👍