In 2024.8 some changes were made for action.
Consider this code:
- type: custom:bar-card
entity: sensor.system_monitor_disk_free
tap_action:
action: perform-action
perform_action: input_boolean.toggle
target:
entity_id: input_boolean.test_boolean
- type: custom:bar-card
entity: sensor.system_monitor_disk_free
tap_action:
action: call-service
service: input_boolean.toggle
service_data:
entity_id: input_boolean.test_boolean

Only the 2nd syntax (legacy) works.
In 2024.8 some changes were made for action.
Consider this code:
Only the 2nd syntax (legacy) works.