We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7da9947 commit d5563ebCopy full SHA for d5563eb
drivers/SmartThings/matter-switch/src/init.lua
@@ -720,7 +720,7 @@ local function device_init(driver, device)
720
device:subscribe()
721
end
722
723
-local function do_configure(driver, device)
+local function match_profile(driver, device)
724
if detect_bridge(device) then
725
return
726
@@ -764,8 +764,12 @@ local function do_configure(driver, device)
764
765
766
767
+local function do_configure(driver, device)
768
+ match_profile(driver, device)
769
+end
770
+
771
local function driver_switched(driver, device)
- do_configure(driver, device)
772
773
774
775
local function device_removed(driver, device)
0 commit comments