Fix PEP257 issues
This commit is contained in:
parent
876978d64a
commit
4f536ac63d
9 changed files with 74 additions and 108 deletions
|
@ -41,8 +41,7 @@ class EntityComponent(object):
|
|||
self.scan_interval).add_entities
|
||||
|
||||
def setup(self, config):
|
||||
"""
|
||||
Set up a full entity component.
|
||||
"""Set up a full entity component.
|
||||
|
||||
Loads the platforms from the config and will listen for supported
|
||||
discovered platforms.
|
||||
|
@ -63,8 +62,7 @@ class EntityComponent(object):
|
|||
info))
|
||||
|
||||
def extract_from_service(self, service):
|
||||
"""
|
||||
Extract all known entities from a service call.
|
||||
"""Extract all known entities from a service call.
|
||||
|
||||
Will return all entities if no entities specified in call.
|
||||
Will return an empty list if entities specified but unknown.
|
||||
|
@ -134,6 +132,7 @@ class EntityPlatform(object):
|
|||
|
||||
# pylint: disable=too-few-public-methods
|
||||
def __init__(self, component, scan_interval):
|
||||
"""Initalize the entity platform."""
|
||||
self.component = component
|
||||
self.scan_interval = scan_interval
|
||||
self.platform_entities = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue