I am trying to store a list in dev.pluginProps using this code:
- Code: Select all
indigo.romIDrevList.append(idRev)
sensorList = indigo.romIDrevList
localPropsCopy = dev.pluginProps
localPropsCopy.update({'sensorList' : sensorList})
dev.replacePluginPropsOnServer(localPropsCopy)
I see in the database the list is stored like this:
- Code: Select all
<sensorList type="vector">
<Item type="string">28F4F525030000D1</Item>
<Item type="string">282C102603000034</Item>
<Item type="string">28622A260300006B</Item>
</sensorList>
I want to access this list with:
- Code: Select all
sensorList = dev.pluginProps["sensorList"]
butI get error;
<type 'exceptions.TypeError'>: Expecting an object of type list; got an object of type List instead
Can you help me with dis please?
Kind regards,
Z