Skip to content

Commit 05aa526

Browse files
committed
add electrical handling to driverSwitched
1 parent fb951ee commit 05aa526

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)