@@ -35,7 +35,6 @@ if version.api < 13 then
3535 clusters .Global = require " Global"
3636end
3737
38- local COMPONENT_TO_ENDPOINT_MAP = " __component_to_endpoint_map"
3938local RUN_MODE_SUPPORTED_MODES = " __run_mode_supported_modes"
4039local CURRENT_RUN_MODE = " __current_run_mode"
4140local CLEAN_MODE_SUPPORTED_MODES = " __clean_mode_supported_modes"
@@ -193,7 +192,6 @@ local function update_supported_arguments(device, ep, current_run_mode, current_
193192
194193 -- Set Supported Operating State Commands
195194 local cap_op_cmds = capabilities .robotCleanerOperatingState .commands
196- local cap_op_enum = capabilities .robotCleanerOperatingState .operatingState
197195 local supported_op_commands = {}
198196
199197 if can_send_state_command (device , cap_op_cmds .goHome .NAME , current_state , nil ) == true then
@@ -209,14 +207,6 @@ local function update_supported_arguments(device, ep, current_run_mode, current_
209207 supported_op_commands , {visibility = {displayed = false }}
210208 )
211209 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
220210end
221211
222212-- Matter Handlers --
0 commit comments