kalkih / simple-weather-card

Minimalistic weather card for Home Assistant
MIT License
283 stars 33 forks source link

Cannot read property 'isNight' of undefined #27

Open bdovaz opened 4 years ago

bdovaz commented 4 years ago

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)

eximo84 commented 4 years ago

Same issue for me but i am configuring this without HACS

dubilyer commented 2 years ago

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.