Skip to content

Commit 9380f9c

Browse files
committed
Revert "Merge branch 'beta' into main"
This reverts commit 48c52ab, reversing changes made to d978bac.
1 parent 48c52ab commit 9380f9c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

drivers/SmartThings/matter-switch/src/sub_drivers/camera/camera_utils/device_configuration.lua

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@ function CameraDeviceConfiguration.match_profile(device, status_light_enabled_pr
5555

5656
local camera_endpoints = switch_utils.get_endpoints_by_device_type(device, fields.DEVICE_TYPE_ID.CAMERA)
5757
if #camera_endpoints > 0 then
58-
if #device:get_endpoints(clusters.WebRTCTransportProvider.ID, {cluster_type = "SERVER"}) > 0 and
59-
#device:get_endpoints(clusters.WebRTCTransportRequestor.ID, {cluster_type = "CLIENT"}) > 0 then
60-
table.insert(main_component_capabilities, capabilities.webrtc.ID)
61-
end
6258
local camera_ep = switch_utils.get_endpoint_info(device, camera_endpoints[1])
6359
for _, ep_cluster in pairs(camera_ep.clusters or {}) do
6460
if ep_cluster.cluster_id == clusters.CameraAvStreamManagement.ID and has_server_cluster_type(ep_cluster) then
@@ -110,6 +106,9 @@ function CameraDeviceConfiguration.match_profile(device, status_light_enabled_pr
110106
table.insert(main_component_capabilities, capabilities.zoneManagement.ID)
111107
elseif ep_cluster.cluster_id == clusters.OccupancySensing.ID and has_server_cluster_type(ep_cluster) then
112108
table.insert(main_component_capabilities, capabilities.motionSensor.ID)
109+
elseif ep_cluster.cluster_id == clusters.WebRTCTransportProvider.ID and has_server_cluster_type(ep_cluster) and
110+
#device:get_endpoints(clusters.WebRTCTransportRequestor.ID, {cluster_type = "CLIENT"}) > 0 then
111+
table.insert(main_component_capabilities, capabilities.webrtc.ID)
113112
end
114113
end
115114
end

drivers/SmartThings/matter-switch/src/test/test_matter_camera.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ local function update_device_profile()
156156
{
157157
"main",
158158
{
159-
"webrtc",
160159
"videoCapture2",
161160
"cameraViewportSettings",
162161
"localMediaStorage",
@@ -168,6 +167,7 @@ local function update_device_profile()
168167
"mechanicalPanTiltZoom",
169168
"videoStreamSettings",
170169
"zoneManagement",
170+
"webrtc",
171171
"motionSensor",
172172
"sounds",
173173
}

0 commit comments

Comments
 (0)