simple-weather-card icon indicating copy to clipboard operation
simple-weather-card copied to clipboard

Cannot read property 'isNight' of undefined

Open bdovaz opened this issue 4 years ago • 2 comments

I have configured it with HACS and I get this error on the latest stable HA release:

simple-weather-card-bundle.js:1 Uncaught (in promise) TypeError: Cannot read property 'isNight' of undefined at HTMLElement.render (simple-weather-card-bundle.js:1) at HTMLElement.update (lit-element.ts:217) at HTMLElement.performUpdate (updating-element.ts:704) at HTMLElement._enqueueUpdate (updating-element.ts:653)

bdovaz avatar Mar 03 '20 20:03 bdovaz

Same issue for me but i am configuring this without HACS

eximo84 avatar May 22 '20 22:05 eximo84

I've got this problem after the blind copy-paste from the readme 🤦‍♂️. Probably I don't have an entity named weather.smhi. After changing it to weather.home everything works like a charm.

@kalkih I suppose it's an expected behavior. Maybe it worth adding a bit more details to console.log.

dubilyer avatar Jul 13 '22 11:07 dubilyer