refactored entity listener so that live events actually come in
This commit is contained in:
1 parent
57c86093a4
commit
883955e523
12 files changed
+214
-266
No files matched your search
@@ -20,8 +20,6 @@ export const useTagDB = (
|
||||
const c = JSON.stringify(automations);
|
||||
if (lastAuto.current !== c) {
|
||||
lastAuto.current = c;
|
||||
console.log("updating...");
|
||||
|
||||
setState({
|
||||
automationTags: convertAutoListToMap(automations),
|
||||
changed: new Set(),
|
||||
|
||||
@@ -52,7 +52,7 @@ export const AutomationManager: FC<AutomationManagerProps> = ({
|
||||
|
||||
// alias
|
||||
const configAutomations = api.state.automations.data;
|
||||
const hassEntities = haEntities.collection.state;
|
||||
const hassEntities = haEntities.collection;
|
||||
return (
|
||||
<AutomationManagerLoaded
|
||||
configAutomations={configAutomations.data}
|
||||
|
||||
Reference in new issue
Block a user