- Add compatibility with
Home Assistant2026.7.0(Somemore-infodialogs events got broken with this new version).
- Update
shadow-dom-selectorto solve a bug that was ignoring the config optional parameter.
- Add a
shouldRejectboolean property to the config optional parameter. This property isfalseby default, so the library will returnnullif some element is not found. If this property is set totruethe library will throw errors if some elements cannot be found.
- Fix
onMoreInfoDialogOpenevent not being triggered inHome Assistant2026.4.1
- Fix
addEventListenertypes
- Migrated to
TypeScript 6, so the target of the library is nowes6instead of the previouses5 - Some refactors have been needed to make the project compatible with
TypeScript 6but they should not affect the functionality of the plugin
- Make the library compatible with Home Assistant
2026.3.0
- Update
shadow-dom-selectorto its latest version
- Make the event threshold a property that can be sent by the clients instead a constant. With this change the event threshold has been changed from
50to450.
- Do not allow any event to be dispatched more than once in a short timestamp
- Breaking change: refactored the event names and created a new event (an event that will be triggered if any panel is loaded not only a lovelace panel)
- Breaking change: Removed "lovelace" string from all the events because these events can be triggered on any dashboard if the
listenmethod is called. The new even names are:- ON_PANEL_LOAD (
onPanelLoad) - ON_MORE_INFO_DIALOG_OPEN (
onMoreInfoDialogOpen) - ON_HISTORY_AND_LOGBOOK_DIALOG_OPEN (
onHistoryAndLogBookDialogOpen) - ON_SETTINGS_DIALOG_OPEN (
onSettingsDialogOpen)
- ON_PANEL_LOAD (
- Fix a bug: if one of the elements in a tree is null, return null instead of trying to perform a query on a null element which will throw an error
- Publish the package using npm provenance
- Update the
shadow-dom-selectorpackage to the latest version
- Update the
shadow-dom-selectorpackage to the latest version to make it possible to use the newdeepQuerymethod
- Remove private class properties
- Export all the
CustomEventsdetails object to be able to use them for type checking in the clients
- Update
shadow-dom-selectorand use the new dot notation syntax
- Change
querySelector,querySelectorAllandshadowRootQuerySelectorby the shadow-dom-selector async dot notation.
- Do not bundle
shadow-dom-selectorinside the final bundle ofhome-assistant-query-selector - Trigger the
onLovelacePanelLoadevent also when closing the raw configuration editor - Improve the types when using the
detailproperty of theCustomEvent
-
Fix typos in events prefixes
onLovelaveMoreInfoDialogOpen=>onLovelaceMoreInfoDialogOpenonLovelaveHistoryAndLogBookDialogOpen=>onLovelaceHistoryAndLogBookDialogOpenonLovelaveSettingsDialogOpen=>onLovelaceSettingsDialogOpen
-
Add suport for three more events:
onLovelaveMoreInfoDialogOpenThis event is triggered when a more-info dialog is open or when one returns to the main view of the more-info dialog from theHistoryorSettingsview inside the dialog.onLovelaveHistoryAndLogBookDialogOpenThis event is triggered when theHistoryview is opened from the header actions of a more-info dialog.onLovelaveSettingsDialogOpenThis event is triggered when theSettingsview is opened from the header actions of a more-info dialog.
- Release of
home-assistant-query-selector