Fixed some linting errors

pull/170/head
jamespcole 2015-07-10 20:10:23 +10:00
parent 9a63f34129
commit bf2b06880e
2 changed files with 5 additions and 4 deletions

View File

@ -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:

View File

@ -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