mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +00:00
Subscribe to the issue registry as early as possible (#18384)
This commit is contained in:
parent
2b67731906
commit
b12e4989db
@ -21,6 +21,7 @@ import {
|
|||||||
} from "../data/lovelace";
|
} from "../data/lovelace";
|
||||||
import { subscribePanels } from "../data/ws-panels";
|
import { subscribePanels } from "../data/ws-panels";
|
||||||
import { subscribeThemes } from "../data/ws-themes";
|
import { subscribeThemes } from "../data/ws-themes";
|
||||||
|
import { subscribeRepairsIssueRegistry } from "../data/repairs";
|
||||||
import { subscribeUser } from "../data/ws-user";
|
import { subscribeUser } from "../data/ws-user";
|
||||||
import type { ExternalAuth } from "../external_app/external_auth";
|
import type { ExternalAuth } from "../external_app/external_auth";
|
||||||
import "../resources/array.flat.polyfill";
|
import "../resources/array.flat.polyfill";
|
||||||
@ -121,6 +122,7 @@ window.hassConnection.then(({ conn }) => {
|
|||||||
subscribeThemes(conn, noop);
|
subscribeThemes(conn, noop);
|
||||||
subscribeUser(conn, noop);
|
subscribeUser(conn, noop);
|
||||||
subscribeFrontendUserData(conn, "core", noop);
|
subscribeFrontendUserData(conn, "core", noop);
|
||||||
|
subscribeRepairsIssueRegistry(conn, noop);
|
||||||
|
|
||||||
if (location.pathname === "/" || location.pathname.startsWith("/lovelace/")) {
|
if (location.pathname === "/" || location.pathname.startsWith("/lovelace/")) {
|
||||||
const llWindow = window as WindowWithLovelaceProm;
|
const llWindow = window as WindowWithLovelaceProm;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user