mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Bugfix mjpeg camera (#5539)
This commit is contained in:
parent
b2ecaa189a
commit
c972e90580
@ -71,7 +71,7 @@ class MjpegCamera(Camera):
|
|||||||
self._username = device_info.get(CONF_USERNAME)
|
self._username = device_info.get(CONF_USERNAME)
|
||||||
self._password = device_info.get(CONF_PASSWORD)
|
self._password = device_info.get(CONF_PASSWORD)
|
||||||
self._mjpeg_url = device_info[CONF_MJPEG_URL]
|
self._mjpeg_url = device_info[CONF_MJPEG_URL]
|
||||||
self._still_image_url = device_info[CONF_STILL_IMAGE_URL]
|
self._still_image_url = device_info.get(CONF_STILL_IMAGE_URL)
|
||||||
|
|
||||||
self._auth = None
|
self._auth = None
|
||||||
if self._username and self._password:
|
if self._username and self._password:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user