Skip to content

Commit 90ed999

Browse files
committed
Code cleanup
1 parent 96612cd commit 90ed999

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/SmartThings/matter-switch/src/switch_utils/device_configuration.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ function DeviceConfiguration.match_profile(driver, device)
219219
updated_profile = SwitchDeviceConfiguration.assign_profile_for_onoff_ep(device, default_endpoint_id)
220220
local generic_profile = function(s) return string.find(updated_profile or "", s, 1, true) end
221221
if generic_profile("light-level") and #device:get_endpoints(clusters.OccupancySensing.ID) > 0 then
222-
updated_profile = switch_utils.get_product_override_field(device, "target_profile") or "light-level-motion"
222+
updated_profile = switch_utils.get_product_override_field(device, "target_profile") or "light-level-motion"
223223
elseif switch_utils.check_switch_category_vendor_overrides(device) then
224224
-- check whether the overwrite should be over "plug" or "light" based on the current profile
225225
local overwrite_category = string.find(updated_profile, "plug") and "plug" or "light"

0 commit comments

Comments
 (0)