Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button confirmation not working on whole button #1498

Open
velisiska opened this issue May 23, 2024 · 0 comments
Open

Button confirmation not working on whole button #1498

velisiska opened this issue May 23, 2024 · 0 comments
Labels

Comments

@velisiska
Copy link

Hello, i am trying to add confirmation on a button according to the underlying button-card component https://github.com/custom-cards/button-card?tab=readme-ov-file#confirmation, but this works only on the most outer part of the button, not for the icon or name.

- type: "custom:button-card"
  template: card_power_outlet
  variables:
    ulm_card_power_outlet_name: NAS
    ulm_card_power_outlet_icon: "mdi:nas"
  entity: switch.nas
  confirmation:
    text: Are you sure you want to press this button?

i've also tried it withtap_action, but its still the same.

- type: "custom:button-card"
  template: card_power_outlet
  variables:
    ulm_card_power_outlet_name: NAS
    ulm_card_power_outlet_icon: "mdi:nas"
  entity: switch.nas
  tap_action:
    action: call-service
    service: switch.toggle
    service_data:
      entity_id: switch.nas
    confirmation:
      text: Are you sure you want to press this button?

actions

@velisiska velisiska changed the title Button confirmation Button confirmation not working on whole button May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant