Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot add property heading_name, object is not extensible #16

Open
iptvcld opened this issue Apr 4, 2020 · 3 comments
Open

Cannot add property heading_name, object is not extensible #16

iptvcld opened this issue Apr 4, 2020 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@iptvcld
Copy link

iptvcld commented Apr 4, 2020

I have the below
entities:
- sensor.canadian_imperial_bank_of_commerce
- type: custom:entity-attributes-card
entity: sensor.canadian_imperial_bank_of_commerce
#heading_name: Test
filter:
include:
- sensor.canadian_imperial_bank_of_commerce.lastPriceUpdated
- sensor.canadian_imperial_bank_of_commerce.change
- sensor.canadian_imperial_bank_of_commerce.changePercent
- sensor.canadian_imperial_bank_of_commerce.highestPrice
- sensor.canadian_imperial_bank_of_commerce.lowestPrice

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

@Dunkelschunkel-zz
Copy link

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
Copy link

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
Copy link

TRusselo commented Dec 8, 2020

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

@iantrich iantrich added the help wanted Extra attention is needed label Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants