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

Remove random_uuid() for io

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/fork@1547 b32b6428-25c9-4566-ad07-03861ab6144f
parent a65d058a
No related branches found
No related tags found
No related merge requests found
......@@ -38,10 +38,11 @@ class IPX800(gevent.Greenlet):
for t in cfg['outputs_type']:
i = i+1
out = None
addr = '%s%02x' % (cfg['base_addr'][:-2],i)
if t == 'relay':
out = devices.new_relay(self,i,tools.get_random_uuid())
out = devices.new_relay(self,i,addr)
if t == 'lamp':
out = devices.new_lamp(self,i,tools.get_random_uuid())
out = devices.new_lamp(self,i,addr)
if out:
self.engine.add_device(out.dev)
self.in_out.append(out)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment