File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
drivers/SmartThings/matter-switch/src/switch_utils Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments