# HG changeset patch # User drewp@bigasterisk.com # Date 1528499524 0 # Node ID fe4dd7e7c4ba8fcb32590ae0935cdffa58d5ecfe # Parent 083137dae55d32a6e416bbb0a4d8137146e33ceb fix corruption of choice uris to strings when KC saves them Ignore-this: 2de843511fc7e8ad8b030406d47707fb diff -r 083137dae55d -r fe4dd7e7c4ba light9/effect/settings.py --- a/light9/effect/settings.py Fri Jun 08 21:50:09 2018 +0000 +++ b/light9/effect/settings.py Fri Jun 08 23:12:04 2018 +0000 @@ -215,10 +215,12 @@ scaledAttributeTypes = [L9['color'], L9['brightness'], L9['uv']] settingType = L9['scaledValue'] if attr in scaledAttributeTypes else L9['value'] + if not isinstance(val, URIRef): + val = Literal(val) add.extend([ (setting, L9['device'], dev, ctx), (setting, L9['deviceAttr'], attr, ctx), - (setting, settingType, Literal(val), ctx), + (setting, settingType, val, ctx), ]) settingsSubgraphCache.add(setting)