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

#30 - fixed issue that stops HA rendering when one of sensors is missing #31

Closed artospaj closed 3 years ago

artospaj commented 4 years ago

Fixes #30

dnguyen800 commented 4 years ago

can you confirm you tested this? I'm seeing an error in Visual Studio Code when I add in your change.

Swampen commented 3 years ago

This change works fine for me? I can now remove sensors, and they get set to 0 instead of the whole UI not rendering