home-assistant-neerslag-app icon indicating copy to clipboard operation
home-assistant-neerslag-app copied to clipboard

Card doesn't show, TypeError: Cannot read properties of undefined (reading 'length')

Open bvhme opened this issue 1 year ago • 1 comments

On pages where I put a card, without showing it anything, I get

TypeError: Cannot read properties of undefined (reading 'length')

image

The code at that address is:

if( chartData.length > 0 ) 

This is my config and those sensors are the right ones:

type: custom:neerslag-card
title: Neerslag
entities:
  - sensor.buiten_buienalarm_regen_data
  - sensor.buiten_buienradar_regen_data

bvhme avatar May 08 '23 09:05 bvhme

Error management of the card could be improved to cache such errors. However, it is slightly an edge case as we can expect any of the used sensors to contain data.

aex351 avatar May 20 '24 08:05 aex351