recent Domoticz.Configuration() API problem
Posted: Sunday 04 April 2021 15:11
I have an issue with the recent added Domoticz.Configuration API in the Python Framework
from the doc: https://www.domoticz.com/wiki/Developin ... hon_plugin, the correct value type are dictionary. However it looks like the API doesn't survive to a Dictionary with a key equal to None !
Here is a piece of code to duplicate:
from the doc: https://www.domoticz.com/wiki/Developin ... hon_plugin, the correct value type are dictionary. However it looks like the API doesn't survive to a Dictionary with a key equal to None !
Here is a piece of code to duplicate:
Code: Select all
config_item = { '_count': self.count , 'None_Value': None}
Domoticz.Log("config_item: %s" %str(config_item))
Domoticz.Log("Json config_item: %s" %json.dumps(config_item ))
setConfigItem( Value=config_item)