thomasloven / hass-browser_mod

🔹 A Home Assistant integration to turn your browser into a controllable entity and media player
MIT License
1.31k stars 186 forks source link

Cannot close a popup from a button press #722

Open Gavergracht opened 2 months ago

Gavergracht commented 2 months ago

My Home Assistant version: 0.XX.X

Core 2024.6.4 Supervisor 2024.06.2 Operating System 12.4 Frontend 20240610.1

What I am doing:

I have a popup with 2 buttons . a Yes and a no.

What I expected to happen: When pressed no , i want the popup closed when yes, I have script, where at the end it also closes the popup

What happened instead:

Nothing Minimal steps to reproduce:

# The least amount of code or steps possible to reproduce my error

# Put your code/steps here
              - type: custom:mushroom-template-card
                primary: Neen
                tap_action:
                  action: fire-dom-event
                  browser_mod:
                    service: browser_mod.close_popup
                    data:
                      browser_id: THIS

alias: verlichting_allesuit sequence:

Error messages from the browser console: Executed: July 10, 2024 at 9:47:27 AM Result: params: domain: browser_mod service: close_popup service_data: browser_id: THIS target: {} running_script: false

// Select everything from the browser console and copy it

// Paste it here

By replacing the space in the checkboxes ([ ]) with an X below, I indicate that I: