Skip to content

Commit d1c20d1

Browse files
committed
Fix failed part on luacheck
Signed-off-by: HunsupJung <hunsup.jung@samsung.com>
1 parent 355860d commit d1c20d1

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

drivers/SmartThings/matter-rvc/src/init.lua

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ if version.api < 13 then
3535
clusters.Global = require "Global"
3636
end
3737

38-
local COMPONENT_TO_ENDPOINT_MAP = "__component_to_endpoint_map"
3938
local RUN_MODE_SUPPORTED_MODES = "__run_mode_supported_modes"
4039
local CURRENT_RUN_MODE = "__current_run_mode"
4140
local CLEAN_MODE_SUPPORTED_MODES = "__clean_mode_supported_modes"
@@ -209,14 +208,6 @@ local function update_supported_arguments(device, ep, current_run_mode, current_
209208
supported_op_commands, {visibility = {displayed = false}}
210209
)
211210
device:emit_event_for_endpoint(ep, event)
212-
213-
-- Check whether non-idle mode can be selected or not
214-
local can_be_non_idle = false
215-
if current_tag == clusters.RvcRunMode.types.ModeTag.IDLE and
216-
(current_state == cap_op_enum.stopped.NAME or current_state == cap_op_enum.paused.NAME or
217-
current_state == cap_op_enum.docked.NAME or current_state == cap_op_enum.charging.NAME) then
218-
can_be_non_idle = true
219-
end
220211
end
221212

222213
-- Matter Handlers --

drivers/SmartThings/matter-rvc/src/test/test_matter_rvc.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,6 @@ local RUN_MODES = {
112112
CLEANING_MODE,
113113
}
114114

115-
local RUN_MODE_LABELS = { RUN_MODES[1].label, RUN_MODES[2].label, RUN_MODES[3].label }
116-
117115
local CLEAN_MODE_1 = { label = "Clean Mode 1", mode = 0, mode_tags = { modeTagStruct({ mfg_code = 0x1E1E, value = 1 }) } }
118116
local CLEAN_MODE_2 = { label = "Clean Mode 2", mode = 1, mode_tags = { modeTagStruct({ mfg_code = 0x1E1E, value = 2 }) } }
119117

0 commit comments

Comments
 (0)