jcooper-korg / AlarmPanel

28 stars 6 forks source link

Error 'Cannot add property scale, object is not extensible' in lovelace #4

Closed Spirituss closed 3 years ago

Spirituss commented 3 years ago

After the last card-mod and other updates lovelace shows this error on the place of the card: Cannot add property scale, object is not extensible

Снимок экрана 2021-04-07 в 21 00 59

I receive the same error with the original forked card. Any ideas?

jcooper-korg commented 3 years ago

I'm not seeing that here, and I'm up-to-date. I have my card scale set to 13px.

what HA version are you on? also, please send me your card config.

Here's my version info

Screen Shot 2021-04-07 at 6 46 58 AM
Spirituss commented 3 years ago

This is my lovelace config:

views: 
- id: security
  cards:
      - type: custom:alarm_control_panel-card 
        entity: alarm_control_panel.home_alarm
        display_letters: false
        states:
          - arm_home
          - arm_away
Снимок экрана 2021-04-07 в 22 53 48
jcooper-korg commented 3 years ago

thanks for the response. I tried your config and also see an error! I was able to work around it by adding the scale property to the config. E.g.

views: 
- id: security
  cards:
      - type: custom:alarm_control_panel-card 
        entity: alarm_control_panel.home_alarm
        display_letters: false
        scale: 13px
        states:
          - arm_home
          - arm_away

but that shouldn't be required! I'll look into a fix

Spirituss commented 3 years ago

Sounds great! Looking forward for the update!

jcooper-korg commented 3 years ago

try pulling that change, and let me know how it goes. tests ok for me here