mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 14:27:07 +00:00
Fix bug with aioHTTP and none authentification (#4116)
This commit is contained in:
parent
54d19e3c53
commit
edeb31d74e
@ -72,6 +72,7 @@ class MjpegCamera(Camera):
|
|||||||
self._mjpeg_url = device_info[CONF_MJPEG_URL]
|
self._mjpeg_url = device_info[CONF_MJPEG_URL]
|
||||||
|
|
||||||
self._auth = None
|
self._auth = None
|
||||||
|
if self._username and self._password:
|
||||||
if self._authentication == HTTP_BASIC_AUTHENTICATION:
|
if self._authentication == HTTP_BASIC_AUTHENTICATION:
|
||||||
self._auth = aiohttp.BasicAuth(
|
self._auth = aiohttp.BasicAuth(
|
||||||
self._username, password=self._password
|
self._username, password=self._password
|
||||||
|
Loading…
x
Reference in New Issue
Block a user