@@ -302,7 +302,7 @@ class HaConfigEntryRow extends LitElement {
302302 item . supports_unload &&
303303 item . source !== "system"
304304 ? html `
305- <ha- md- menu- item @click = ${ this . _handleReload } >
305+ <ha- md- menu- item . clickAction = ${ this . _handleReload } >
306306 <ha- svg- icon slot= "start" .path = ${ mdiReload } > </ ha- svg- icon>
307307 ${ this . hass . localize (
308308 "ui.panel.config.integrations.config_entry.reload"
@@ -311,14 +311,14 @@ class HaConfigEntryRow extends LitElement {
311311 `
312312 : nothing }
313313
314- <ha- md- menu- item @click = ${ this . _handleRename } graphic= "icon" >
314+ <ha- md- menu- item . clickAction = ${ this . _handleRename } graphic= "icon">
315315 <ha- svg- icon slot= "start" .path = ${ mdiRenameBox } > </ ha- svg- icon>
316316 ${ this . hass . localize (
317317 "ui.panel.config.integrations.config_entry.rename"
318318 ) }
319319 </ ha- md- menu- item>
320320
321- <ha- md- menu- item @click = ${ this . _handleCopy } graphic= "icon" >
321+ <ha- md- menu- item . clickAction = ${ this . _handleCopy } graphic= "icon">
322322 <ha- svg- icon slot= "start" .path = ${ mdiContentCopy } > </ ha- svg- icon>
323323 ${ this . hass . localize (
324324 "ui.panel.config.integrations.config_entry.copy"
@@ -328,7 +328,7 @@ class HaConfigEntryRow extends LitElement {
328328 ${ Object . keys ( item . supported_subentry_types ) . map (
329329 ( flowType ) =>
330330 html `<ha- md- menu- item
331- @click = ${ this . _addSubEntry }
331+ . clickAction = ${ this . _addSubEntry }
332332 .entry = ${ item }
333333 .flowType = ${ flowType }
334334 graphic= "icon"
@@ -360,7 +360,7 @@ class HaConfigEntryRow extends LitElement {
360360 item . supports_reconfigure &&
361361 item . source !== "system"
362362 ? html `
363- <ha- md- menu- item @click = ${ this . _handleReconfigure } >
363+ <ha- md- menu- item . clickAction = ${ this . _handleReconfigure } >
364364 <ha- svg- icon slot= "start" .path = ${ mdiWrench } > </ ha- svg- icon>
365365 ${ this . hass . localize (
366366 "ui.panel.config.integrations.config_entry.reconfigure"
@@ -369,15 +369,18 @@ class HaConfigEntryRow extends LitElement {
369369 `
370370 : nothing }
371371
372- <ha- md- menu- item @click = ${ this . _handleSystemOptions } graphic= "icon" >
372+ <ha- md- menu- item
373+ .clickAction = ${ this . _handleSystemOptions }
374+ graphic= "icon"
375+ >
373376 <ha- svg- icon slot= "start" .path = ${ mdiCogOutline } > </ ha- svg- icon>
374377 ${ this . hass . localize (
375378 "ui.panel.config.integrations.config_entry.system_options"
376379 ) }
377380 </ ha- md- menu- item>
378381 ${ item . disabled_by === "user"
379382 ? html `
380- <ha- md- menu- item @click = ${ this . _handleEnable } >
383+ <ha- md- menu- item . clickAction = ${ this . _handleEnable } >
381384 <ha- svg- icon
382385 slot= "start"
383386 .path = ${ mdiPlayCircleOutline }
@@ -389,7 +392,7 @@ class HaConfigEntryRow extends LitElement {
389392 ? html `
390393 <ha- md- menu- item
391394 class= "warning"
392- @click = ${ this . _handleDisable }
395+ . clickAction = ${ this . _handleDisable }
393396 graphic= "icon"
394397 >
395398 <ha- svg- icon
@@ -403,7 +406,10 @@ class HaConfigEntryRow extends LitElement {
403406 : nothing }
404407 ${ item . source !== "system"
405408 ? html `
406- <ha- md- menu- item class= "warning" @click = ${ this . _handleDelete } >
409+ <ha- md- menu- item
410+ class= "warning"
411+ .clickAction = ${ this . _handleDelete }
412+ >
407413 <ha- svg- icon
408414 slot= "start"
409415 class = "warning"
@@ -611,7 +617,7 @@ class HaConfigEntryRow extends LitElement {
611617 }
612618 }
613619
614- private async _handleReload ( ) {
620+ private _handleReload = async ( ) => {
615621 const result = await reloadConfigEntry ( this . hass , this . entry . entry_id ) ;
616622 const locale_key = result . require_restart
617623 ? "reload_restart_confirm"
@@ -621,28 +627,28 @@ class HaConfigEntryRow extends LitElement {
621627 `ui.panel.config.integrations.config_entry.${ locale_key } `
622628 ) ,
623629 } ) ;
624- }
630+ } ;
625631
626- private async _handleReconfigure ( ) {
632+ private _handleReconfigure = async ( ) => {
627633 showConfigFlowDialog ( this , {
628634 startFlowHandler : this . entry . domain ,
629635 showAdvanced : this . hass . userData ?. showAdvanced ,
630636 manifest : await fetchIntegrationManifest ( this . hass , this . entry . domain ) ,
631637 entryId : this . entry . entry_id ,
632638 navigateToResult : true ,
633639 } ) ;
634- }
640+ } ;
635641
636- private async _handleCopy ( ) {
642+ private _handleCopy = async ( ) => {
637643 await copyToClipboard ( this . entry . entry_id ) ;
638644 showToast ( this , {
639645 message :
640646 this . hass ?. localize ( "ui.common.copied_clipboard" ) ||
641647 "Copied to clipboard" ,
642648 } ) ;
643- }
649+ } ;
644650
645- private async _handleRename ( ) {
651+ private _handleRename = async ( ) => {
646652 const newName = await showPromptDialog ( this , {
647653 title : this . hass . localize ( "ui.panel.config.integrations.rename_dialog" ) ,
648654 defaultValue : this . entry . title ,
@@ -656,7 +662,7 @@ class HaConfigEntryRow extends LitElement {
656662 await updateConfigEntry ( this . hass , this . entry . entry_id , {
657663 title : newName ,
658664 } ) ;
659- }
665+ } ;
660666
661667 private async _signUrl ( ev ) {
662668 const anchor = ev . currentTarget ;
@@ -668,7 +674,7 @@ class HaConfigEntryRow extends LitElement {
668674 fileDownload ( signedUrl . path ) ;
669675 }
670676
671- private async _handleDisable ( ) {
677+ private _handleDisable = async ( ) => {
672678 const entryId = this . entry . entry_id ;
673679
674680 const confirmed = await showConfirmationDialog ( this , {
@@ -706,9 +712,9 @@ class HaConfigEntryRow extends LitElement {
706712 ) ,
707713 } ) ;
708714 }
709- }
715+ } ;
710716
711- private async _handleEnable ( ) {
717+ private _handleEnable = async ( ) => {
712718 const entryId = this . entry . entry_id ;
713719
714720 let result : DisableConfigEntryResult ;
@@ -731,9 +737,9 @@ class HaConfigEntryRow extends LitElement {
731737 ) ,
732738 } ) ;
733739 }
734- }
740+ } ;
735741
736- private async _handleDelete ( ) {
742+ private _handleDelete = async ( ) => {
737743 const entryId = this . entry . entry_id ;
738744
739745 const applicationCredentialsId =
@@ -767,20 +773,20 @@ class HaConfigEntryRow extends LitElement {
767773 if ( applicationCredentialsId ) {
768774 this . _removeApplicationCredential ( applicationCredentialsId ) ;
769775 }
770- }
776+ } ;
771777
772- private _handleSystemOptions ( ) {
778+ private _handleSystemOptions = ( ) => {
773779 showConfigEntrySystemOptionsDialog ( this , {
774780 entry : this . entry ,
775781 manifest : this . manifest ,
776782 } ) ;
777- }
783+ } ;
778784
779- private _addSubEntry ( ev ) {
780- showSubConfigFlowDialog ( this , this . entry , ev . target . flowType , {
785+ private _addSubEntry = ( item ) => {
786+ showSubConfigFlowDialog ( this , this . entry , item . flowType , {
781787 startFlowHandler : this . entry . entry_id ,
782788 } ) ;
783- }
789+ } ;
784790
785791 static styles = [
786792 haStyle ,
0 commit comments