Change frontend setting prioritization

This commit is contained in:
2022-07-24 13:24:17 +00:00
parent d5edd2452a
commit 02c8f91690
7 changed files with 26 additions and 22 deletions

View File

@@ -145,8 +145,8 @@ export const ConnectionMixin = (SuperClass) => {
get settings() {
return {
...this.global_settings,
...this.user_settings,
...this.browser_settings,
...this.user_settings,
};
}

View File

@@ -48,11 +48,11 @@ export const AutoSettingsMixin = (SuperClass) => {
selectTree(
document.body,
"home-assistant$home-assistant-main$app-drawer-layout"
).then((el) => el.style.setProperty("--app-drawer-width", "0px"));
).then((el) => el?.style?.setProperty("--app-drawer-width", "0px"));
selectTree(
document.body,
"home-assistant$home-assistant-main$app-drawer-layout app-drawer"
).then((el) => el.remove());
).then((el) => el?.remove?.());
}
// Hide header

View File

@@ -42,7 +42,7 @@ import { BrowserIDMixin } from "./browserID";
x navigate
- lovelace-reload?
x window-reload
- screensaver
- screensaver ?
x sequence
x delay
x javascript eval
@@ -64,6 +64,8 @@ import { BrowserIDMixin } from "./browserID";
- Video player?
- Media_seek
- Screensavers
- IMPORTANT: FIX DEFAULT HIDING OF ENTITIES
- Check functionality with CAST - may need to add frontend part as a lovelace resource
*/
export class BrowserMod extends ServicesMixin(
PopupMixin(