diff --git a/src/panels/profile/ha-pick-theme-row.ts b/src/panels/profile/ha-pick-theme-row.ts index b0147b6842..59d9774712 100644 --- a/src/panels/profile/ha-pick-theme-row.ts +++ b/src/panels/profile/ha-pick-theme-row.ts @@ -173,6 +173,9 @@ export class HaPickThemeRow extends LitElement { } private _supportsModeSelection(themeName: string): boolean { + if (!(themeName in this.hass.themes.themes)) { + return false; // User's theme no longer exists + } return "modes" in this.hass.themes.themes[themeName]; }