UI-Lovelace-Minimalist / UI

UI-Lovelace-Minimalist is a "theme" for HomeAssistant
https://ui-lovelace-minimalist.github.io/UI/
Other
1.57k stars 420 forks source link

Button confirmation not working on whole button #1498

Open velisiska opened 1 month ago

velisiska commented 1 month ago

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