less annoying ha connection state

This commit is contained in:
ari committed 2022-08-25 12:27:14 -04:00
1 parent 15dfa25e34
commit e2d4022bde
6 files changed
+34 -14

No files matched your search

+4 -1
View File
@@ -229,6 +229,9 @@ export const useHA = () => {
callService,
callHA,
deviceExtras: getDeviceExtraWsCalls(callHA),
reloadAutomations: () => callService("automation", "reload"),
reloadAutomations: () =>
conn.status === "loaded"
? callService("automation", "reload")
: Promise.resolve(),
};
};