dnguyen800 / air-visual-card

A Lovelace card showing air quality data from airvisual.com. Requires the AirVisual component.
MIT License
100 stars 35 forks source link

Fix #55 - Lovelace Crash #56

Closed jaruba closed 2 years ago

jaruba commented 2 years ago

Lovelace crashes with this error if the user has no weather.home entity:

air-visual-card.js?hacstag=157674859200:426 Uncaught TypeError: Cannot read properties of undefined (reading 'attributes')
    at HTMLElement.set hass [as hass] (air-visual-card.js?hacstag=157674859209:426)
    at HTMLElement.value (hui-masonry-view.ts:44)
    at HTMLElement.value (hui-masonry-view.ts:44)
    at HTMLElement.t.addEventListener.once (hui-masonry-view.ts:44)
    at i (typography.js:181)
    at ha-logbook.ts:28

This issue is described in more detail here: https://github.com/dnguyen800/air-visual-card/issues/55

Please release this change soon, I want my Lovelace cards back.. 😞