Skip to content

Commit 6a091be

Browse files
committed
remove test print() logs
1 parent 5923758 commit 6a091be

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

  • drivers/SmartThings/zigbee-switch/src/color_temp_range_handlers

drivers/SmartThings/zigbee-switch/src/color_temp_range_handlers/init.lua

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,13 @@ local function color_temp_min_mireds_handler(driver, device, value, zb_rx)
1818
device.log.warn_with({hub_logs = true}, string.format("Device reported a color temperature %d mired outside of sane range of %.2f-%.2f", min_mired_bound, COLOR_TEMPERATURE_MIRED_MIN, COLOR_TEMPERATURE_MIRED_MAX))
1919
return
2020
end
21-
print("Setting min mired bound to " .. min_mired_bound)
2221
device:set_field(switch_utils.MIRED_MIN_BOUND, min_mired_bound, {persist = true})
2322

2423
-- if we have already received a valid max mired bound, emit a colorTemperatureRange event
2524
local max_mired_bound = device:get_field(switch_utils.MIRED_MAX_BOUND)
2625
if max_mired_bound == nil then
27-
print("Max mired bound not set yet, not emitting colorTemperatureRange event")
2826
return
2927
elseif min_mired_bound < max_mired_bound then
30-
print("Emitting colorTemperatureRange event with min mired bound " .. min_mired_bound .. " and max mired bound " .. max_mired_bound)
3128
local endpoint = zb_rx.address_header.src_endpoint.value
3229
local max_kelvin_bound = switch_utils.convert_mired_to_kelvin(min_mired_bound)
3330
local min_kelvin_bound = switch_utils.convert_mired_to_kelvin(max_mired_bound)
@@ -46,7 +43,6 @@ local function color_temp_max_mireds_handler(driver, device, value, zb_rx)
4643
device.log.warn_with({hub_logs = true}, string.format("Device reported a color temperature %d mired outside of sane range of %.2f-%.2f", max_mired_bound, COLOR_TEMPERATURE_MIRED_MIN, COLOR_TEMPERATURE_MIRED_MAX))
4744
return
4845
end
49-
print("Setting max mired bound to " .. max_mired_bound)
5046
device:set_field(switch_utils.MIRED_MAX_BOUND, max_mired_bound, {persist = true})
5147

5248
-- if we have already received a valid min mired bound, emit a colorTemperatureRange event

0 commit comments

Comments
 (0)