From f1c792b4c800b38c2cd420b41ce3b82470cdf66a Mon Sep 17 00:00:00 2001 From: tkdrob Date: Sun, 14 Feb 2021 16:21:55 -0500 Subject: [PATCH] Use core constants for uvc (#46538) --- homeassistant/components/uvc/camera.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/homeassistant/components/uvc/camera.py b/homeassistant/components/uvc/camera.py index ae10c7db48f..a20b99d673a 100644 --- a/homeassistant/components/uvc/camera.py +++ b/homeassistant/components/uvc/camera.py @@ -9,7 +9,7 @@ from uvcclient import camera as uvc_camera, nvr import voluptuous as vol from homeassistant.components.camera import PLATFORM_SCHEMA, SUPPORT_STREAM, Camera -from homeassistant.const import CONF_PORT, CONF_SSL +from homeassistant.const import CONF_PASSWORD, CONF_PORT, CONF_SSL from homeassistant.exceptions import PlatformNotReady import homeassistant.helpers.config_validation as cv @@ -17,7 +17,6 @@ _LOGGER = logging.getLogger(__name__) CONF_NVR = "nvr" CONF_KEY = "key" -CONF_PASSWORD = "password" DEFAULT_PASSWORD = "ubnt" DEFAULT_PORT = 7080 @@ -197,7 +196,6 @@ class UnifiVideoCamera(Camera): def camera_image(self): """Return the image of this camera.""" - if not self._camera: if not self._login(): return