Use core constants for hikvision (#46247)

This commit is contained in:
tkdrob 2021-02-08 18:13:58 -05:00 committed by GitHub
parent 6467eff09c
commit c602c619a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,6 +14,7 @@ from homeassistant.components.binary_sensor import (
from homeassistant.const import (
ATTR_LAST_TRIP_TIME,
CONF_CUSTOMIZE,
CONF_DELAY,
CONF_HOST,
CONF_NAME,
CONF_PASSWORD,
@ -30,7 +31,6 @@ from homeassistant.util.dt import utcnow
_LOGGER = logging.getLogger(__name__)
CONF_IGNORED = "ignored"
CONF_DELAY = "delay"
DEFAULT_PORT = 80
DEFAULT_IGNORED = False
@ -139,7 +139,6 @@ class HikvisionData:
def __init__(self, hass, url, port, name, username, password):
"""Initialize the data object."""
self._url = url
self._port = port
self._name = name