any/all.scene=-1 now checks for no scene.
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-10-31 09:51:06 +01:00
parent 147231e4fd
commit 6443e0ecd3
2 changed files with 0 additions and 5 deletions
-4
View File
@@ -170,10 +170,6 @@ func (c *EventCondition) checkDevice(key string, device Device) (matches bool, s
return c.matches(strconv.FormatFloat(device.State.Temperature, 'f', -1, 64)), false
case "scene":
if len(device.SceneAssignments) == 0 {
return false, false
}
sceneId := -1
for _, assignment := range device.SceneAssignments {
duration := time.Duration(assignment.DurationMS) * time.Millisecond