hass-browser_mod
hass-browser_mod copied to clipboard
Version 2.0 clashed with Button Card integration
My Home Assistant version: 2022.8.7
What I am doing: Using YAML configuration to open popups for my dashboard
What I expected to happen: Popups to launch
What happened instead: Receiving console errors that prevent the popup from launching
Error messages from the browser console:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'startsWith')
at Ue._service_action (browser_mod.js:66:17482)
at HTMLBodyElement.
By replacing the space in the checkboxes ([ ]) with an X below, I indicate that I:
-
[X] Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).
-
[X] Have made sure I am using the latest version of the plugin.
-
[X] Have followed the troubleshooting steps of the "Common Problems" section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.
-
[X] Understand that leaving one or more boxes unticked or failure to follow the template above may increase the time required to handle my bug-report, or cause it to be closed without further action.
Please include the code you are using to open the popup.
Hello, since the update, the popups open but the integration displays this:

Logger: homeassistant.config_entries Source: config_entries.py:349 First occurred: 17:01:45 (1 occurrences) Last logged: 17:01:45
Migration handler not found for entry Browser Mod for browser_mod
Hello, since the update, the popups open but the integration displays this:
![]()
Logger: homeassistant.config_entries Source: config_entries.py:349 First occurred: 17:01:45 (1 occurrences) Last logged: 17:01:45
Migration handler not found for entry Browser Mod for browser_mod
@herveaurel refer https://github.com/thomasloven/hass-browser_mod/issues/356 You have to completely remove the existing browsermod integration
@thomasmaxson I hope you have made changes to your yaml, the code which works for browser mod v1 might not work with v2.
Original code is as follows:
action: fire-dom-event
browser_mod:
command: popup
title: Laundry Status
card:
type: [card details here]
New code:
action: fire-dom-event
browser_mod:
service: browser_mod.popup
data:
browser_id: THIS
title: Laundry Status
content:
type: [card details here]
Same here
Returning with my solution for anyone else who is lost on getting the new structure to work.
Got this working with the following code:
action: fire-dom-event
browser_mod:
command: popup
service: browser_mod.popup
data:
title: Laundry Status
content:
type: [card details here]
Thanks I fix it, sorry to bother you :P
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.