Uncaught SyntaxError
BMWfan opened this issue · comments
Hello,
i downloaded the flower-card.js file and copied to /config/www/lovelace-flower-card/ .
I added it as a Ressouce pointing to /local/lovelace-flower-card/flower-card.js with a Ressource Type Javascript-Modul.
I tried to add the card like the following but get directly a failure that this custom element doesnt exist:
type: custom:flower-card
entity: plant.einblatt
show_bars:
- illuminance
- humidity
- moisture
- conductivity
- temperature
- dli
battery_sensor: sensor.plant_sensor_c191_battery
My log output looks like that:
2023-08-25 16:50:20.827 ERROR (MainThread) [frontend.js.latest.202307051] https://homeassistant.mydomain.de/local/lovelace-flower-card/flower-card.js:1:11 Uncaught SyntaxError: Unexpected token ':'
Something seems to be wrong in the flower-card.js File, or?