Change to list of actions instead of dictionary

This commit is contained in:
Andrew Welker
2020-12-04 21:35:31 -07:00
parent f11bdcfd53
commit 45c1e25e4f
2 changed files with 2 additions and 2 deletions

View File

@@ -128,7 +128,7 @@ namespace PepperDash.Essentials
{
foreach (var a in eventConfig.Actions)
{
DeviceJsonApi.DoDeviceAction(a.Value);
DeviceJsonApi.DoDeviceAction(a);
}
});
}

View File

@@ -26,7 +26,7 @@ namespace PepperDash.Essentials.Room.Config
public string Time;
[JsonProperty("actions")]
public Dictionary<string, DeviceActionWrapper> Actions;
public List<DeviceActionWrapper> Actions;
[JsonProperty("persistent")]
public bool Persistent;