hasl-sensor / lovelace-hasl-departure-card

Lovelace Departure Card for the HASL Platform
https://hasl.sorlov.com
Apache License 2.0
15 stars 14 forks source link

Error message when "Update: true" #19

Closed kattelk closed 1 year ago

kattelk commented 2 years ago

I am using HASL to get the departure times for a bus stop using the SL Realtidsinformation 4 API.

In the HASL depature card, I would like to set the option "Update: true", so that I know when the data on the card is out of date. However, when I do this, I get the error ! "this is undefined". (Before some recent update this error used to say "Cannot read properties of undefined (reading 'config')". I get the same error independent of the bus stop used.

Is there anything I can do to work around this issue (apart from setting "Update: false")?

mountaindude commented 1 year ago

I am also seeing this. Looked into it real quick and it seems there's a scoping problem in the code.

image

DSorlov commented 1 year ago

Fixed in #22