Skip to content

Commit 741cd53

Browse files
author
Josh Schindehette
authored
Fixed functionality of simple sequences in struct properties for devices (#4)
1 parent e56bb39 commit 741cd53

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rest/helper.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,10 @@ def _handle_struct(prop):
112112
p_dict.pop('type', None)
113113
p_dict['value'] = []
114114
for _, m in prop.members.iteritems():
115-
m_dict = _handle_simple(m)
116-
p_dict['value'].append( m_dict )
115+
if type(m) == sequenceProperty:
116+
p_dict['value'].append( _handle_simpleseq(m) )
117+
else:
118+
p_dict['value'].append( _handle_simple(m) )
117119
p_dict['scaType'] = 'struct'
118120
return p_dict
119121

0 commit comments

Comments
 (0)