custom-cards / entity-attributes-card

Entity Attributes
Apache License 2.0
68 stars 12 forks source link

Cannot add property heading_name, object is not extensible #16

Open iptvcld opened 4 years ago

iptvcld commented 4 years ago

I have the below entities:

ERROR: Cannot add property heading_name, object is not extensible type: 'custom:entity-attributes-card' entity: sensor.canadian_imperial_bank_of_commerce filter: include:

Dunkelschunkel-zz commented 4 years ago

This one is bothering my as well. I can see, the moment I but something under the include part this message appears.

Have been tinkering with it a bit and did not find any solution.

limes007 commented 4 years ago

A simple workaround: Define 'heading_name' and 'heading_state' in your card definition. E.g.

entity: sun.sun
filter:
  include:
    - sun.sun.next_rising
    - sun.sun.next_setting
    - sun.sun.next_dawn
    - sun.sun.next_dusk
type: 'custom:entity-attributes-card'
heading_name: Name
heading_state: State
TRusselo commented 3 years ago

heading_name: ' ' heading_state: ' ' works a bit better..