Skip to content

Commit

Permalink
Prevent darkMode overwrite by frontend_default_dark_theme (#9519)
Browse files Browse the repository at this point in the history
  • Loading branch information
spacegaier committed Sep 6, 2021
1 parent 4066499 commit 5a1070c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/state/themes-mixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,6 @@ export default <T extends Constructor<HassBaseEl>>(superClass: T) =>
themeSettings
);

// Now determine value that should be stored in the local storage settings
darkMode =
darkMode || !!(darkPreferred && this.hass.themes.default_dark_theme);

if (darkMode !== this.hass.themes.darkMode) {
this._updateHass({
themes: { ...this.hass.themes!, darkMode },
Expand Down

0 comments on commit 5a1070c

Please sign in to comment.