# HG changeset patch # User Drew Perttula # Date 1559205089 0 # Node ID b697752b35f9122f25a2cd9e3b8dccd287d7b65a # Parent 64eeba9601685cac48cc79ccd145738c4c47b7fe note about a bug Ignore-this: 6cc4dbd36a5cdc32496f114d5649b8e0 diff -r 64eeba960168 -r b697752b35f9 light9/web/live/live.coffee --- a/light9/web/live/live.coffee Thu May 30 08:30:27 2019 +0000 +++ b/light9/web/live/live.coffee Thu May 30 08:31:29 2019 +0000 @@ -344,6 +344,9 @@ if (value == undefined or (typeof value == "number" and isNaN(value)) or (typeof value == "object" and value != null and not value.id)) throw new Error("controlChanged sent bad value " + value) effectSetting = @activeSettings.effectSettingLookup(device, deviceAttr) + + # sometimes this misses an existing setting, which leads to a mess + if @shouldBeStored(deviceAttr, value) if not effectSetting? @_addEffectSetting(device, deviceAttr, value)