File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
drivers/SmartThings/matter-switch/src Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -721,9 +721,6 @@ local function device_init(driver, device)
721
721
end
722
722
723
723
local function match_profile (driver , device )
724
- if detect_bridge (device ) then
725
- return
726
- end
727
724
local main_endpoint = find_default_endpoint (device )
728
725
-- initialize the main device card with buttons if applicable, and create child devices as needed for multi-switch devices.
729
726
local profile_found = initialize_buttons_and_switches (driver , device , main_endpoint )
@@ -765,11 +762,15 @@ local function match_profile(driver, device)
765
762
end
766
763
767
764
local function do_configure (driver , device )
768
- match_profile (driver , device )
765
+ if device .network_type == device_lib .NETWORK_TYPE_MATTER and not detect_bridge (device ) then
766
+ match_profile (driver , device )
767
+ end
769
768
end
770
769
771
770
local function driver_switched (driver , device )
772
- match_profile (driver , device )
771
+ if device .network_type == device_lib .NETWORK_TYPE_MATTER and not detect_bridge (device ) then
772
+ match_profile (driver , device )
773
+ end
773
774
end
774
775
775
776
local function device_removed (driver , device )
You can’t perform that action at this time.
0 commit comments