File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -15,16 +15,6 @@ import { migrateAutomationAction } from "./script";
15
15
export const AUTOMATION_DEFAULT_MODE : ( typeof MODES ) [ number ] = "single" ;
16
16
export const AUTOMATION_DEFAULT_MAX = 10 ;
17
17
18
- declare global {
19
- interface HASSDomEvents {
20
- /**
21
- * Dispatched to open the automation editor.
22
- * Used by custom cards/panels to trigger the editor view.
23
- */
24
- "show-automation-editor" : ShowAutomationEditorParams ;
25
- }
26
- }
27
-
28
18
export interface AutomationEntity extends HassEntityBase {
29
19
attributes : HassEntityAttributeBase & {
30
20
id ?: string ;
Original file line number Diff line number Diff line change @@ -7,11 +7,21 @@ import {
7
7
import type { Constructor } from "../types" ;
8
8
import type { HassBaseEl } from "./hass-base-mixin" ;
9
9
10
+ declare global {
11
+ interface HASSDomEvents {
12
+ /**
13
+ * Dispatched to open the automation editor.
14
+ * Used by custom cards/panels to trigger the editor view.
15
+ */
16
+ "hass-automation-editor" : ShowAutomationEditorParams ;
17
+ }
18
+ }
19
+
10
20
export default < T extends Constructor < HassBaseEl > > ( superClass : T ) =>
11
21
class extends superClass {
12
22
protected firstUpdated ( changedProps : PropertyValues ) {
13
23
super . firstUpdated ( changedProps ) ;
14
- this . addEventListener ( "show -automation-editor" , ( ev ) =>
24
+ this . addEventListener ( "hass -automation-editor" , ( ev ) =>
15
25
this . _handleShowAutomationEditor (
16
26
ev as HASSDomEvent < ShowAutomationEditorParams >
17
27
)
You can’t perform that action at this time.
0 commit comments