custom-cards / entity-attributes-card

Entity Attributes
Apache License 2.0
68 stars 12 forks source link

Incorrect documentation to add the card #11

Closed manju-rn closed 1 year ago

manju-rn commented 4 years ago

There is incorrect documentation when the card is installed. It shows below

- url: /community_plugin/entity-attributes-card/entity-attributes-card.js
  type:

This is missing the 2 important points and detailed instruction for any first time user. I would suggest adding the below:

  1. Go to Raw Config Editor in HA UI. Overview -> Click on 3 dots -> Configure UI -> Click on 3 Dots again -> Raw Config Editor
  2. Add the below configuration. Please note that the resources should be in the same indentation level as that of views: and title:
    resources:
    - url: /community_plugin/entity-attributes-card/entity-attributes-card.js
    type: module

    Typically it should be added between Title and View, like below

    title: Home
    resources:
    - url: /community_plugin/entity-attributes-card/entity-attributes-card.js
    type: module
    views:
    - badges:
rpitera commented 4 years ago

Is the proper type module though? I took a guess and added it as type: js and it's working as expected.

So what IS the proper type? LOL