Getting the confirmation pop-up to work

I’m annoyed I can’t work this out, but I have been trying to get the confirmation pop-up to work for the entity button card. This is what I think the instructions on https://www.home-assistant.io/lovelace/entity-button/ are instructing:

type: entity-button
tap_action:
  action: toggle
  confirmation: true
show_icon: true
show_name: true
entity: switch.swimming_pool_light
name: Light

But I am getting an error message:
Expected a value of type {action,navigation_path,url_path,service,service_data} | undefinedfortap_action.confirmationbut receivedtrue.

Thank you for any advice on this.

That’s an issue with the UI Editor, i think.
If you save it, the confirmation works.

1 Like

Thanks @VDRainer. I feel even more of a twit for not trying it out before asking for help!