Skip to content
Snippets Groups Projects
Commit b42e86fc authored by jkerdreu's avatar jkerdreu
Browse files

0.7 migration

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2369 b32b6428-25c9-4566-ad07-03861ab6144f
parent 3a8f02b7
No related branches found
No related tags found
No related merge requests found
......@@ -15,9 +15,10 @@ class KNXDev:
self.cfg = cfg
self.attributes_binding = {}
# search for xaal address, if None, the device will produce a new one
self.addr = cfg.get('addr',None)
self.addr = tools.get_uuid(cfg.get('addr',None))
if self.addr == None:
cfg['addr'] = self.addr = tools.get_random_uuid()
self.addr = tools.get_random_uuid()
cfg['addr'] = str(self.addr)
gw.save_config = True
self.dev = None
self.setup()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment