Update pydocstyle to 2.1.1 and flake8-docstrings to 1.3.0 (#14557)
* Update pydocstyle to 2.1.1 and flake8-docstrings to 1.3.0 * Pydocstyle D401 fixes
This commit is contained in:
parent
89d856d147
commit
dd9d53c83e
84 changed files with 148 additions and 130 deletions
|
@ -52,7 +52,7 @@ class EntityComponent:
|
|||
in self._platforms.values())
|
||||
|
||||
def get_entity(self, entity_id):
|
||||
"""Helper method to get an entity."""
|
||||
"""Get an entity."""
|
||||
for platform in self._platforms.values():
|
||||
entity = platform.entities.get(entity_id)
|
||||
if entity is not None:
|
||||
|
@ -243,7 +243,7 @@ class EntityComponent:
|
|||
|
||||
def _async_init_entity_platform(self, platform_type, platform,
|
||||
scan_interval=None, entity_namespace=None):
|
||||
"""Helper to initialize an entity platform."""
|
||||
"""Initialize an entity platform."""
|
||||
if scan_interval is None:
|
||||
scan_interval = self.scan_interval
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue