thomasloven / lovelace-fold-entity-row

🔹 A foldable row for entities card, containing other rows
MIT License
561 stars 37 forks source link

Uncaught SyntaxError: Unexpected token 'export' #153

Closed mhetzi closed 3 years ago

mhetzi commented 3 years ago

My Home Assistant version: 2021.4.6

Fold-entity-row version (FROM BROWSER CONSOLE): Error Version from HACS: 20.0.4 What I am doing:

What I expected to happen: trying to use it What happened instead: image

Minimal steps to reproduce:

# The least ammount of code possible to reproduce my error

entities:
  - entity: switch.kuche
    icon: 'mdi:television-classic'
  - automation.switch_tv_kuche_off
  - automation.switch_tv_kuche_on
  - entity: switch.kuche_nintendo_switch
    icon: 'mdi:nintendo-switch'
  - entity: switch.kuche_raspberry
    icon: 'mdi:raspberry-pi'
  - entity: switch.kuche_shield
    icon: 'mdi:google-chrome'
  - entity: input_boolean.kueche_play_switch
    icon: 'mdi:nintendo-switch'
  - type: 'custom:fold-entity-row'
    head: switch.stereo_anlage_off
    entities:
      - switch.stereo_anlage_aux
state_color: true
title: Fernseher Küche
type: entities

End of code

Error messages from the browser console: fold-entity-row.js:42 Uncaught SyntaxError: Unexpected token 'export'


By putting an X in the boxes ([X]) below, I indicate that I:

thomasloven commented 3 years ago

Make sure the resource is imported as a Javascript Module in Open your Home Assistant instance and show your Lovelace resources.

mhetzi commented 3 years ago

Aah, thanks. That was my problem.