mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Pylint cleanups (#15626)
* Pylint 2 no-else-return fixes * Remove unneeded abstract-class-not-used pylint disable
This commit is contained in:
committed by
Paulus Schoutsen
parent
a38c0d6d15
commit
b7c336a687
@@ -45,8 +45,7 @@ class TestUVCSetup(unittest.TestCase):
|
||||
"""Create a mock camera."""
|
||||
if uuid == 'id3':
|
||||
return {'model': 'airCam'}
|
||||
else:
|
||||
return {'model': 'UVC'}
|
||||
return {'model': 'UVC'}
|
||||
|
||||
mock_remote.return_value.index.return_value = mock_cameras
|
||||
mock_remote.return_value.get_camera.side_effect = mock_get_camera
|
||||
|
||||
Reference in New Issue
Block a user