forked from home-assistant/core
Fixed some linting errors
This commit is contained in:
@@ -179,11 +179,13 @@ class Camera(Entity):
|
|||||||
""" The base class for camera components """
|
""" The base class for camera components """
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
# pylint: disable=no-self-use
|
||||||
def is_recording(self):
|
def is_recording(self):
|
||||||
""" Returns true if the device is recording """
|
""" Returns true if the device is recording """
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
# pylint: disable=no-self-use
|
||||||
def is_streaming(self):
|
def is_streaming(self):
|
||||||
""" Returns true if the device is streaming """
|
""" Returns true if the device is streaming """
|
||||||
return False
|
return False
|
||||||
@@ -194,41 +196,49 @@ class Camera(Entity):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
# pylint: disable=no-self-use
|
||||||
def brand(self):
|
def brand(self):
|
||||||
""" Should return a string of the camera brand """
|
""" Should return a string of the camera brand """
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
# pylint: disable=no-self-use
|
||||||
def model(self):
|
def model(self):
|
||||||
""" Returns string of camera model """
|
""" Returns string of camera model """
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
# pylint: disable=no-self-use
|
||||||
def base_url(self):
|
def base_url(self):
|
||||||
""" Return the configured base URL for the camera """
|
""" Return the configured base URL for the camera """
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
# pylint: disable=no-self-use
|
||||||
def image_url(self):
|
def image_url(self):
|
||||||
""" Return the still image segment of the URL """
|
""" Return the still image segment of the URL """
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
# pylint: disable=no-self-use
|
||||||
def device_info(self):
|
def device_info(self):
|
||||||
""" Get the configuration object """
|
""" Get the configuration object """
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
# pylint: disable=no-self-use
|
||||||
def username(self):
|
def username(self):
|
||||||
""" Get the configured username """
|
""" Get the configured username """
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
# pylint: disable=no-self-use
|
||||||
def password(self):
|
def password(self):
|
||||||
""" Get the configured password """
|
""" Get the configured password """
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
# pylint: disable=no-self-use
|
||||||
def still_image_url(self):
|
def still_image_url(self):
|
||||||
""" Get the URL of a camera still image """
|
""" Get the URL of a camera still image """
|
||||||
return None
|
return None
|
||||||
|
@@ -165,6 +165,7 @@ class GenericCamera(Camera):
|
|||||||
return self._is_streaming
|
return self._is_streaming
|
||||||
|
|
||||||
@is_streaming.setter
|
@is_streaming.setter
|
||||||
|
# pylint: disable=arguments-differ
|
||||||
def is_streaming(self, value):
|
def is_streaming(self, value):
|
||||||
self._is_streaming = value
|
self._is_streaming = value
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user