File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/dialogs/more-info/components/lights Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -116,8 +116,9 @@ class DialogLightColorFavorite extends LitElement {
116116 ) ;
117117 }
118118
119- private async _cancel ( ) {
119+ private _cancel ( ) {
120120 this . _dialogParams ?. cancel ?.( ) ;
121+ this . closeDialog ( ) ;
121122 }
122123
123124 private _dialogClosed ( ) : void {
@@ -129,7 +130,6 @@ class DialogLightColorFavorite extends LitElement {
129130
130131 private async _save ( ) {
131132 if ( ! this . _color ) {
132- this . _cancel ( ) ;
133133 return ;
134134 }
135135 this . _dialogParams ?. submit ?.( this . _color ) ;
@@ -153,7 +153,6 @@ class DialogLightColorFavorite extends LitElement {
153153 <ha- wa- dialog
154154 .hass = ${ this . hass }
155155 .open = ${ this . _open }
156- @cancel = ${ this . _cancel }
157156 @closed = ${ this . _dialogClosed }
158157 header- title= ${ this . _dialogParams ?. title }
159158 >
@@ -209,7 +208,6 @@ class DialogLightColorFavorite extends LitElement {
209208 <ha- butto n
210209 slot= "secondaryAction"
211210 appearance = "plain"
212- data- dialog= "close"
213211 @click = ${ this . _cancel }
214212 >
215213 ${ this . hass . localize ( "ui.common.cancel" ) }
You can’t perform that action at this time.
0 commit comments