mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
Fixed some linting errors
This commit is contained in:
parent
9a63f34129
commit
bf2b06880e
@ -33,8 +33,6 @@ from homeassistant.const import (
|
|||||||
ATTR_ENTITY_PICTURE,
|
ATTR_ENTITY_PICTURE,
|
||||||
HTTP_NOT_FOUND,
|
HTTP_NOT_FOUND,
|
||||||
ATTR_ENTITY_ID,
|
ATTR_ENTITY_ID,
|
||||||
HTTP_HEADER_CONTENT_TYPE,
|
|
||||||
CONTENT_TYPE_MULTIPART
|
|
||||||
)
|
)
|
||||||
|
|
||||||
from homeassistant.helpers.entity_component import EntityComponent
|
from homeassistant.helpers.entity_component import EntityComponent
|
||||||
@ -130,8 +128,8 @@ def setup(hass, config):
|
|||||||
camera = component.entities[entity_id]
|
camera = component.entities[entity_id]
|
||||||
|
|
||||||
if not camera:
|
if not camera:
|
||||||
self.handler.send_response(HTTP_NOT_FOUND)
|
handler.send_response(HTTP_NOT_FOUND)
|
||||||
self.handler.end_headers()
|
handler.end_headers()
|
||||||
return
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -156,14 +156,17 @@ class GenericCamera(Camera):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def base_url(self):
|
def base_url(self):
|
||||||
|
""" Return the URL of the IP Camera """
|
||||||
return self._base_url
|
return self._base_url
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def username(self):
|
def username(self):
|
||||||
|
""" Return the configured username """
|
||||||
return self._username
|
return self._username
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def password(self):
|
def password(self):
|
||||||
|
""" Return the configured password """
|
||||||
return self._password
|
return self._password
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
x
Reference in New Issue
Block a user