File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import type {
1111import { showToast } from "../../util/toast" ;
1212
1313import type { HomeAssistant } from "../../types" ;
14+ import { fireEvent } from "../../common/dom/fire_event" ;
1415
1516@customElement ( "ha-more-info-add-to" )
1617export class HaMoreInfoAddTo extends LitElement {
@@ -51,6 +52,7 @@ export class HaMoreInfoAddTo extends LitElement {
5152 app_payload : action . app_payload ,
5253 } ,
5354 } ) ;
55+ fireEvent ( this , "add-to-action-selected" ) ;
5456 } catch ( err : any ) {
5557 showToast ( this , {
5658 message : this . hass . localize (
@@ -149,4 +151,8 @@ declare global {
149151 interface HTMLElementTagNameMap {
150152 "ha-more-info-add-to" : HaMoreInfoAddTo ;
151153 }
154+
155+ interface HASSDomEvents {
156+ "add-to-action-selected" : undefined ;
157+ }
152158}
Original file line number Diff line number Diff line change @@ -645,6 +645,7 @@ export class MoreInfoDialog extends LitElement {
645645 <ha- mor e-info- add- to
646646 .hass = ${ this . hass }
647647 .entityId = ${ entityId }
648+ @add-to-action-selected = ${ this . _goBack }
648649 > </ ha- mor e-info- add- to >
649650 `
650651 : nothing
You can’t perform that action at this time.
0 commit comments