nicufarmache / lovelace-big-slider-card

A card with a big slider for light entities in Home Assistant
MIT License
66 stars 11 forks source link

tap_action not supporting data: instead of deprecated service_data: #34

Closed jazzyisj closed 11 months ago

jazzyisj commented 11 months ago

https://github.com/home-assistant/frontend/pull/12628

I recently updated my entire UI config to comply with the new standard of using data: rather than service_data: for entity actions and discovered that the Big Slider Card has not updated yet to support the new syntax. It's the only card I've come across so far that doesn't. Since you link to the updated documentation, it might lead to some confusion.

New syntax (doesn't work):

tap_action:
  action: call-service
  service: script.some_script
  data: "some data"

Old syntax (works):

tap_action:
  action: call-service
  service: script.some_script
  service_data: "some data"

Checklist:

Release with the issue: v1.1.2

nicufarmache commented 11 months ago

Thanks for the report. I'll look into it

nicufarmache commented 11 months ago

In the latest version (1.1.4) I changed the way I handle Actions and the new syntax is now working.

Before this I was using custom-card-helpers but it hasn't been updated in two years so eventually I stopped using it and found another way to do handle Actions