DurgNomis-drol / google_home_timers_card

Card for Home Assistant Google Home integration.
MIT License
34 stars 16 forks source link

Uncaught TypeError: Cannot read property 'state' of undefined #12

Closed LEJOUI closed 3 years ago

LEJOUI commented 3 years ago

Describe the bug A clear and concise description of what the bug is. In the latest HA beta (2021.04.0b0 ) this card crashes the dashboard. It stays blank in Vivaldi and Chrome. Haven't tested it on other browsers.

To Reproduce Steps to reproduce the behavior: Update to the latest HA beta Open HA with the card in Vivaldi or Chrome.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Logs from dev console

Uncaught TypeError: Cannot read property 'state' of undefined
    at HTMLElement.set hass [as hass] (google-timer-card.js:192)
    at HTMLElement.value (chunk.2e1e64ca1084a10e4e49.js:2813)
    at HTMLElement.value (chunk.2e1e64ca1084a10e4e49.js:2813)
    at HTMLElement.t.addEventListener.once (chunk.2e1e64ca1084a10e4e49.js:2813)
    at i (app.e3b77d50.js:12793)
    at chunk.6987f5572b26ac8b641c.js:2538
DurgNomis-drol commented 3 years ago

Thanks for the heads up! I wont be supporting dev or beta releases but I will have this in the back of my mind when 2021.4.0 is released (next week?).

It should be possible to just refresh the page and then it works again. 😄