v1 of loaded manager

This commit is contained in:
ari committed 2022-07-28 15:43:00 -04:00
1 parent a9c3e9c890
commit 96617e7b0c
17 files changed
+295 -88

No files matched your search

@@ -1,8 +1,8 @@
import { convertGroupingToItems, makeGrouping } from "./automationGrouper";
import { bigMockAutoList, createMockAuto } from "utils/mocks";
import { AutomationListAuto } from "./types";
import { AutomationManagerAuto } from "./types";
const automations: AutomationListAuto[] = [
const automations: AutomationManagerAuto[] = [
createMockAuto({
Room: "Living Room",
Type: "Lights",
@@ -22,7 +22,7 @@ const automations: AutomationListAuto[] = [
Room: "Living Room",
}),
createMockAuto({}),
].map<AutomationListAuto>((a) => ({
].map<AutomationManagerAuto>((a) => ({
title: a.metadata.alias ?? "",
entityId: "automation." + a.metadata.id,
description: a.metadata.description ?? "",
@@ -32,7 +32,7 @@ const automations: AutomationListAuto[] = [
isSelected: false,
}));
const bigList = bigMockAutoList.map<AutomationListAuto>((a) => ({
const bigList = bigMockAutoList.map<AutomationManagerAuto>((a) => ({
entityId: "automation." + a.metadata.id,
title: a.metadata.alias ?? "",
description: a.metadata.description ?? "",