Changeset - fe4dd7e7c4ba
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 7 years ago 2018-06-08 23:12:04
drewp@bigasterisk.com
fix corruption of choice uris to strings when KC saves them
Ignore-this: 2de843511fc7e8ad8b030406d47707fb
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
light9/effect/settings.py
Show inline comments
 
@@ -212,16 +212,18 @@ class _Settings(object):
 
            add.append((subj, L9['setting'], setting, ctx))
 
            if setting in settingsSubgraphCache:              
 
                continue
 
                
 
            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)
 
            
 
        return add
 

	
 

	
0 comments (0 inline, 0 general)