Updated UVC camera component to support SSL connections (#18829)
This commit is contained in:
1 parent
c23792d1fb
commit
29f15393b1
4 files changed
+26
-8
No files matched your search
@@ -55,7 +55,12 @@ class TestUVCSetup(unittest.TestCase):
|
||||
assert setup_component(self.hass, 'camera', {'camera': config})
|
||||
|
||||
assert mock_remote.call_count == 1
|
||||
assert mock_remote.call_args == mock.call('foo', 123, 'secret')
|
||||
assert mock_remote.call_args == mock.call(
|
||||
'foo',
|
||||
123,
|
||||
'secret',
|
||||
ssl=False
|
||||
)
|
||||
mock_uvc.assert_has_calls([
|
||||
mock.call(mock_remote.return_value, 'id1', 'Front', 'bar'),
|
||||
mock.call(mock_remote.return_value, 'id2', 'Back', 'bar'),
|
||||
@@ -81,7 +86,12 @@ class TestUVCSetup(unittest.TestCase):
|
||||
assert setup_component(self.hass, 'camera', {'camera': config})
|
||||
|
||||
assert mock_remote.call_count == 1
|
||||
assert mock_remote.call_args == mock.call('foo', 7080, 'secret')
|
||||
assert mock_remote.call_args == mock.call(
|
||||
'foo',
|
||||
7080,
|
||||
'secret',
|
||||
ssl=False
|
||||
)
|
||||
mock_uvc.assert_has_calls([
|
||||
mock.call(mock_remote.return_value, 'id1', 'Front', 'ubnt'),
|
||||
mock.call(mock_remote.return_value, 'id2', 'Back', 'ubnt'),
|
||||
@@ -107,7 +117,12 @@ class TestUVCSetup(unittest.TestCase):
|
||||
assert setup_component(self.hass, 'camera', {'camera': config})
|
||||
|
||||
assert mock_remote.call_count == 1
|
||||
assert mock_remote.call_args == mock.call('foo', 7080, 'secret')
|
||||
assert mock_remote.call_args == mock.call(
|
||||
'foo',
|
||||
7080,
|
||||
'secret',
|
||||
ssl=False
|
||||
)
|
||||
mock_uvc.assert_has_calls([
|
||||
mock.call(mock_remote.return_value, 'one', 'Front', 'ubnt'),
|
||||
mock.call(mock_remote.return_value, 'two', 'Back', 'ubnt'),
|
||||
|
||||
Reference in new issue
Block a user