Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
xAAL
Code
Python
Commits
4d64bb2f
Commit
4d64bb2f
authored
4 months ago
by
KERDREUX Jerome
Browse files
Options
Downloads
Patches
Plain Diff
Format
parent
b5344752
No related branches found
No related tags found
1 merge request
!1
First try of type hints
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
devices/tests/dummy/xaal/dummy/lamp.py
+1
-1
1 addition, 1 deletion
devices/tests/dummy/xaal/dummy/lamp.py
devices/tests/dummy/xaal/dummy/lamp_minimal.py
+2
-2
2 additions, 2 deletions
devices/tests/dummy/xaal/dummy/lamp_minimal.py
with
3 additions
and
3 deletions
devices/tests/dummy/xaal/dummy/lamp.py
+
1
−
1
View file @
4d64bb2f
...
...
@@ -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
'
...
...
This diff is collapsed.
Click to expand it.
devices/tests/dummy/xaal/dummy/lamp_minimal.py
+
2
−
2
View file @
4d64bb2f
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
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment