Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Alexis Brenon
arcades
Commits
833c14eb
Commit
833c14eb
authored
Jul 10, 2017
by
Alexis Brenon
Browse files
✨
Add possibility to have faulty sensors
parent
5fdec33d
Changes
1
Hide whitespace changes
Inline
Side-by-side
arcades/environment/smarthome/sweethome/SweetHome.lua
View file @
833c14eb
...
...
@@ -32,6 +32,17 @@ function class:__init(args)
end
end
if
args
.
faulty_sensors
then
for
_
,
id
in
ipairs
(
args
.
faulty_sensors
)
do
self
.
SENSORS_SET
[
id
]
=
nil
for
i
,
s_id
in
ipairs
(
self
.
SENSORS
)
do
if
id
==
s_id
then
table.remove
(
self
.
SENSORS
,
i
)
break
end
end
end
end
end
function
class
:
actions
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment