mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 11:16:35 +00:00
Theme update refetch themes (#4812)
This commit is contained in:
parent
cc6686a790
commit
ba4e1949c4
@ -8,7 +8,7 @@ const fetchThemes = (conn) =>
|
|||||||
|
|
||||||
const subscribeUpdates = (conn, store) =>
|
const subscribeUpdates = (conn, store) =>
|
||||||
conn.subscribeEvents(
|
conn.subscribeEvents(
|
||||||
(event) => store.setState(event.data, true),
|
() => fetchThemes(conn).then((data) => store.setState(data, true)),
|
||||||
"themes_updated"
|
"themes_updated"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user