Skip to content
Snippets Groups Projects
Commit 4d64bb2f authored by KERDREUX Jerome's avatar KERDREUX Jerome
Browse files

Format

parent b5344752
No related branches found
No related tags found
1 merge request!1First try of type hints
......@@ -3,7 +3,7 @@ from xaal.lib import Device,Engine,tools
import sys
def main(addr):
if addr == None:
if addr is None:
addr = tools.get_random_uuid()
dev = Device("lamp.dimmer",addr)
dev.product_id = 'Dummy Dimming Lamp'
......
from xaal.schemas import devices
from xaal.schemas import devices
from xaal.lib import helpers, tools
import sys
......@@ -36,5 +36,5 @@ def main(engine):
return True
if __name__ =='__main__':
if __name__ == '__main__':
helpers.run_async_package('lamp_minimal', main)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment