diff --git a/src/panels/config/helpers/dialog-helper-detail.ts b/src/panels/config/helpers/dialog-helper-detail.ts index c109a4c91c..518a6c7a4c 100644 --- a/src/panels/config/helpers/dialog-helper-detail.ts +++ b/src/panels/config/helpers/dialog-helper-detail.ts @@ -37,6 +37,7 @@ import { brandsUrl } from "../../../util/brands-url"; import type { Helper, HelperDomain } from "./const"; import { isHelperDomain } from "./const"; import type { ShowDialogHelperDetailParams } from "./show-dialog-helper-detail"; +import { showAlertDialog } from "../../../dialogs/generic/show-dialog-box"; type HelperCreators = Record< HelperDomain, @@ -214,7 +215,6 @@ export class DialogHelperDetail extends LitElement { !(domain in HELPERS) || isComponentLoaded(this.hass, domain); return html` ${label} ${isLoaded ? html`` - : html` { const domain = ev.target.closest("ha-list-item").domain; + const isLoaded = + !(domain in HELPERS) || isComponentLoaded(this.hass, domain); + if (!isLoaded) { + showAlertDialog(this, { + text: this.hass.localize( + "ui.dialogs.helper_settings.platform_not_loaded", + { platform: domain } + ), + }); + return; + } if (domain in HELPERS) { this._loading = true;