# HG changeset patch # User drewp@bigasterisk.com # Date 2018-06-08 23:12:04 # Node ID fe4dd7e7c4ba8fcb32590ae0935cdffa58d5ecfe # Parent 083137dae55d32a6e416bbb0a4d8137146e33ceb fix corruption of choice uris to strings when KC saves them Ignore-this: 2de843511fc7e8ad8b030406d47707fb diff --git a/light9/effect/settings.py b/light9/effect/settings.py --- a/light9/effect/settings.py +++ b/light9/effect/settings.py @@ -215,10 +215,12 @@ class _Settings(object): 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)