Skip to content

Commit 80239d5

Browse files
committed
fixup comment to be more consistent
1 parent 2ee2bf4 commit 80239d5

File tree

1 file changed

+2
-2
lines changed
  • drivers/SmartThings/matter-switch/src/switch_utils

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ function utils.find_default_endpoint(device)
180180
return get_first_non_zero_endpoint(momentary_switch_ep_ids)
181181
end
182182

183-
-- If both onoff and momentary switch endpoints are present, check the device type on the main switch
184-
-- endpoint. If it is not a supported device type, return the first button endpoint as the
183+
-- If both onoff and momentary switch endpoints are present, check the device type on the first onoff
184+
-- endpoint. If it is not a supported device type, return the first momentary switch endpoint as the
185185
-- default endpoint.
186186
if #onoff_ep_ids > 0 and #momentary_switch_ep_ids > 0 then
187187
local default_endpoint_id = get_first_non_zero_endpoint(onoff_ep_ids)

0 commit comments

Comments
 (0)