optimize Hue light updates by using temporary groups.
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-10-30 12:05:56 +02:00
parent ba22187e6e
commit b191455753
4 changed files with 259 additions and 22 deletions
+4 -6
View File
@@ -137,12 +137,10 @@ func Devices(r gin.IRoutes) {
config.PublishChannel <- devices
go func() {
err = config.DeviceRepository().SaveMany(ctxOf(c), models.SMState, devices)
if err != nil {
log.Println("Failed to save devices states")
}
}()
err = config.DeviceRepository().SaveMany(ctxOf(c), models.SMState, devices)
if err != nil {
log.Println("Failed to save devices states")
}
return withSceneState(devices), nil
}))