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
-1
View File
@@ -67,7 +67,6 @@ func handleEvent(event models.Event) (responses []models.Event) {
err := handleSpecial(event)
if err != nil {
log.Printf("Special event handler error (%s): %v", event.Name, err)
return
}
paramStrings := make([]string, 0, 8)
-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