mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 12:44:58 +00:00
Change to list of actions instead of dictionary
This commit is contained in:
@@ -128,7 +128,7 @@ namespace PepperDash.Essentials
|
|||||||
{
|
{
|
||||||
foreach (var a in eventConfig.Actions)
|
foreach (var a in eventConfig.Actions)
|
||||||
{
|
{
|
||||||
DeviceJsonApi.DoDeviceAction(a.Value);
|
DeviceJsonApi.DoDeviceAction(a);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ namespace PepperDash.Essentials.Room.Config
|
|||||||
public string Time;
|
public string Time;
|
||||||
|
|
||||||
[JsonProperty("actions")]
|
[JsonProperty("actions")]
|
||||||
public Dictionary<string, DeviceActionWrapper> Actions;
|
public List<DeviceActionWrapper> Actions;
|
||||||
|
|
||||||
[JsonProperty("persistent")]
|
[JsonProperty("persistent")]
|
||||||
public bool Persistent;
|
public bool Persistent;
|
||||||
|
|||||||
Reference in New Issue
Block a user