mirror of
https://github.com/home-assistant/core.git
synced 2025-08-10 08:05:06 +02:00
Fixed line length issues to make lint happy. Still bummed that I decreased test coverage :(
This commit is contained in:
@@ -54,10 +54,12 @@ class MjpegCamera(Camera):
|
||||
return jpg
|
||||
|
||||
if self._username and self._password:
|
||||
with closing(requests.get(self._mjpeg_url, auth=HTTPBasicAuth(self._username, self._password), stream=True)) as response:
|
||||
with closing(requests.get(self._mjpeg_url, auth = HTTPBasicAuth(
|
||||
self._username, self._password), stream = True)) as response:
|
||||
return process_response(response)
|
||||
else:
|
||||
with closing(requests.get(self._mjpeg_url, stream=True)) as response:
|
||||
with closing(requests.get(self._mjpeg_url,
|
||||
stream = True)) as response:
|
||||
return process_response(response)
|
||||
|
||||
@property
|
||||
|
Reference in New Issue
Block a user