Skip to content

Commit bbbc400

Browse files
minor comment cleanup
1 parent 22c2547 commit bbbc400

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

drivers/SmartThings/matter-switch/src/init.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,7 @@ local function find_default_endpoint(device)
418418
table.sort(switch_eps)
419419
table.sort(button_eps)
420420

421+
-- Return the first fan endpoint as the default endpoint if one is present
421422
if #fan_eps > 0 then
422423
return get_first_non_zero_endpoint(fan_eps)
423424
end
@@ -695,7 +696,7 @@ local function initialize_buttons_and_switches(driver, device, main_endpoint)
695696
end
696697

697698
-- Any button endpoints found will be added as additional components in the profile containing the
698-
-- main endpoint. An fan endpoint will be considered the main endpoint and other additional switch
699+
-- main endpoint. A fan endpoint will be considered the main endpoint and other additional switch
699700
-- endpoints will be added as additional components. The resulting endpoint to component map is
700701
-- saved in the corresponding component to endpoint map field.
701702
if #button_eps > 0 then

0 commit comments

Comments
 (0)