Fixed some linting errors
parent
9a63f34129
commit
bf2b06880e
|
@ -33,8 +33,6 @@ from homeassistant.const import (
|
|||
ATTR_ENTITY_PICTURE,
|
||||
HTTP_NOT_FOUND,
|
||||
ATTR_ENTITY_ID,
|
||||
HTTP_HEADER_CONTENT_TYPE,
|
||||
CONTENT_TYPE_MULTIPART
|
||||
)
|
||||
|
||||
from homeassistant.helpers.entity_component import EntityComponent
|
||||
|
@ -130,8 +128,8 @@ def setup(hass, config):
|
|||
camera = component.entities[entity_id]
|
||||
|
||||
if not camera:
|
||||
self.handler.send_response(HTTP_NOT_FOUND)
|
||||
self.handler.end_headers()
|
||||
handler.send_response(HTTP_NOT_FOUND)
|
||||
handler.end_headers()
|
||||
return
|
||||
|
||||
try:
|
||||
|
|
|
@ -156,14 +156,17 @@ class GenericCamera(Camera):
|
|||
|
||||
@property
|
||||
def base_url(self):
|
||||
""" Return the URL of the IP Camera """
|
||||
return self._base_url
|
||||
|
||||
@property
|
||||
def username(self):
|
||||
""" Return the configured username """
|
||||
return self._username
|
||||
|
||||
@property
|
||||
def password(self):
|
||||
""" Return the configured password """
|
||||
return self._password
|
||||
|
||||
@property
|
||||
|
|
Loading…
Reference in New Issue