custom-cards / button-card

❇️ Lovelace button-card for home assistant
MIT License
1.97k stars 242 forks source link

Getting error when more-info is used #877

Open Hadatko opened 3 weeks ago

Hadatko commented 3 weeks ago

Checklist

Describe the bug Got:

{"event_type":"system_log_event","event":{"name":"frontend.js.modern.202410023","message":["Uncaught error from Chrome 130.0.0.0 on Linux x86_64\nTypeError: Cannot assign to read only property '0' of string 'more-info'\n/hacsfiles/button-card/button-card.js:559:2693\nl (/hacsfiles/button-card/button-card.js:559:2641)\nTi._evalActions (/hacsfiles/button-card/button-card.js:559:3033)\nTi._handleAction (/hacsfiles/button-card/button-card.js:559:3845)\nX.handleEvent (/hacsfiles/button-card/button-card.js:1:14121)\nyt (/hacsfiles/button-card/button-card.js:1:19699)\nt.actionHandler.e.disabled.t.actionHandler.end (/hacsfiles/button-card/button-card.js:1:23627)"],"level":"ERROR","source":["components/system_log/__init__.py",331],"timestamp":1729808085.8408139,"exception":"","count":1,"first_occurred":1729808085.8408139},"origin":"LOCAL","time_fired":"2024-10-24T22:14:45.841270+00:00","context":{"id":"01JB09HCTHVQETMHEKZVNW2W4M","parent_id":null,"user_id":null}}

Version of the card Version: image

To Reproduce This is the configuration I used:

type: vertical-stack
cards:
  - type: horizontal-stack
    cards:
      - type: custom:button-card
        entity: input_boolean.active_rpr
        icon: mdi:home-account
        show_state: false
        show_name: false
        tap_action: more-info

Screenshots If applicable, add screenshots to help explain your problem.

Expected behavior A clear and concise description of what you expected to happen.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

pedolsky commented 2 weeks ago

Compare the documentation, it's

tap_action:
  action: more-info