Skip to content

Commit 9bdd8d6

Browse files
committed
remove print statements from testing
1 parent 5e8a5ec commit 9bdd8d6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/SmartThings/matter-switch/src/switch_handlers/capability_handlers.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ function CapabilityHandlers.handle_step_level(driver, device, cmd)
5454
if step_size == 0 then return end
5555
local endpoint_id = device:component_to_endpoint(cmd.component)
5656
local step_mode = step_size > 0 and clusters.LevelControl.types.StepMode.UP or clusters.LevelControl.types.StepMode.DOWN
57-
print("level:", step_size)
5857
device:send(clusters.LevelControl.server.commands.Step(device, endpoint_id, step_mode, math.abs(step_size), fields.TRANSITION_TIME, fields.OPTIONS_MASK, fields.OPTIONS_OVERRIDE))
5958
end
6059

@@ -132,7 +131,6 @@ function CapabilityHandlers.handle_step_color_temperature_by_percent(driver, dev
132131
local min_mireds = switch_utils.get_field_for_endpoint(device, fields.COLOR_TEMP_BOUND_RECEIVED_MIRED..fields.COLOR_TEMP_MIN, endpoint_id) or fields.COLOR_TEMPERATURE_MIRED_MIN -- default min mireds
133132
local max_mireds = switch_utils.get_field_for_endpoint(device, fields.COLOR_TEMP_BOUND_RECEIVED_MIRED..fields.COLOR_TEMP_MAX, endpoint_id) or fields.COLOR_TEMPERATURE_MIRED_MAX -- default max mireds
134133
local step_size_in_mireds = st_utils.round((max_mireds - min_mireds) * (math.abs(step_percent_change)/100.0))
135-
print("percent:", step_size_in_mireds)
136134
device:send(clusters.ColorControl.server.commands.StepColorTemperature(device, endpoint_id, step_mode, step_size_in_mireds, fields.TRANSITION_TIME, min_mireds, max_mireds, fields.OPTIONS_MASK, fields.OPTIONS_OVERRIDE))
137135
end
138136

0 commit comments

Comments
 (0)