Commit bddd262
authored
Matter Camera: fix devices being marked online due to capability inits (#2688)
The driverSwitched event can be triggered in a few different ways, but
since it was pointed to the same handler as doConfigure, code that
should only be ran for new devices was being run when this event was received
by the driver. This includes `initialize_camera_capabilities`, which
resulted in offline devices being marked online. This change adds
separate handling from driverSwitched, specifically excluding this
function as well as `create_child_devices`.1 parent 0e13a71 commit bddd262
File tree
1 file changed
+8
-1
lines changed- drivers/SmartThings/matter-switch/src/sub_drivers/camera
1 file changed
+8
-1
lines changedLines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
42 | 49 | | |
43 | 50 | | |
44 | 51 | | |
| |||
57 | 64 | | |
58 | 65 | | |
59 | 66 | | |
60 | | - | |
| 67 | + | |
61 | 68 | | |
62 | 69 | | |
63 | 70 | | |
| |||
0 commit comments