Skip to content

Commit 2a377a1

Browse files
authored
Merge pull request #2692 from SmartThingsCommunity/handle-electrical-in-switched
Matter Switch: Add electrical field settings to driverSwitched
2 parents b4b23f0 + 05aa526 commit 2a377a1

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ end
5454

5555
function SwitchLifecycleHandlers.driver_switched(driver, device)
5656
if device.network_type == device_lib.NETWORK_TYPE_MATTER and not switch_utils.detect_bridge(device) then
57+
switch_utils.handle_electrical_sensor_info(device) -- field settings required for proper setup when switching drivers
5758
device_cfg.match_profile(driver, device)
5859
end
5960
end

0 commit comments

Comments
 (0)