cbulock / lovelace-battery-entity

A custom Lovelace component for displaying battery levels for battery entities
Apache License 2.0
206 stars 24 forks source link

Home Assistant 0.113 breaks battery card #30

Open hessel-a opened 4 years ago

hessel-a commented 4 years ago

After upgraded to 0.113 the card disappeared. The next error is shown in the log: http://x.x.x.x:8123/hacsfiles/lovelace-battery-entity/battery-entity.js:72:36 Uncaught TypeError: Cannot read property 'state' of null

putz612 commented 4 years ago

Seeing the same thing on 114, here is the full trace from the console. Weird thing is that it shows up just for a flash.

battery-entity.js:68 Uncaught TypeError: Cannot read property 'attributes' of null at HTMLElement.displayName (battery-entity.js:68) at L (app.664a8247.js:1) at Function.evaluateBinding (app.664a8247.js:1) at Object.j [as fn] (app.664a8247.js:1) at w (app.664a8247.js:1) at (app.664a8247.js:1) at HTMLElement._propagatePropertyChanges (app.664a8247.js:1) at HTMLElement._propertiesChanged (app.664a8247.js:1) at HTMLElement._flushProperties (app.664a8247.js:18792) at HTMLElement._flushProperties (app.664a8247.js:1)