device action builder

This commit is contained in:
ari committed 2022-06-17 13:37:25 -04:00
1 parent 6be6005531
commit 029df7932e
16 files changed
+725 -434

No files matched your search

@@ -15,7 +15,7 @@ export const TriggerState: OptionManager<AutomationTriggerState> = {
entity_id: "",
}),
isReady: () => true,
Component: ({ state, setState, entities }) => {
Component: ({ state, setState, ha: { entities } }) => {
const attributes = entities.getAttributes(state.entity_id);
const states = entities.getStates(state.entity_id, state.attribute);
return (