less annoying ha connection state
This commit is contained in:
1 parent
15dfa25e34
commit
e2d4022bde
6 files changed
+34
-14
No files matched your search
@@ -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(),
|
||||
};
|
||||
};
|
||||
Reference in new issue
Block a user