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
|
@ -106,7 +106,7 @@ class EntityPlatform:
|
|||
return await self._async_setup_platform(async_create_setup_task)
|
||||
|
||||
async def _async_setup_platform(self, async_create_setup_task, tries=0):
|
||||
"""Helper to set up a platform via config file or config entry.
|
||||
"""Set up a platform via config file or config entry.
|
||||
|
||||
async_create_setup_task creates a coroutine that sets up platform.
|
||||
"""
|
||||
|
@ -168,7 +168,7 @@ class EntityPlatform:
|
|||
warn_task.cancel()
|
||||
|
||||
def _schedule_add_entities(self, new_entities, update_before_add=False):
|
||||
"""Synchronously schedule adding entities for a single platform."""
|
||||
"""Schedule adding entities for a single platform, synchronously."""
|
||||
run_callback_threadsafe(
|
||||
self.hass.loop,
|
||||
self._async_schedule_add_entities, list(new_entities),
|
||||
|
@ -237,7 +237,7 @@ class EntityPlatform:
|
|||
async def _async_add_entity(self, entity, update_before_add,
|
||||
component_entities, entity_registry,
|
||||
device_registry):
|
||||
"""Helper method to add an entity to the platform."""
|
||||
"""Add an entity to the platform."""
|
||||
if entity is None:
|
||||
raise ValueError('Entity cannot be None')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue