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:
Ville Skyttä authored and Paulus Schoutsen committed 2018-08-24 10:28:43 +02:00
1 parent 89d856d147
commit dd9d53c83e
84 files changed
+148 -130

No files matched your search

+2 -2
View File
@@ -360,7 +360,7 @@ class MockUser(auth_models.User):
async def register_auth_provider(hass, config):
"""Helper to register an auth provider."""
"""Register an auth provider."""
provider = await auth_providers.auth_provider_from_config(
hass, hass.auth._store, config)
assert provider is not None, 'Invalid config specified'
@@ -749,7 +749,7 @@ class MockEntity(entity.Entity):
return self._handle('available')
def _handle(self, attr):
"""Helper for the attributes."""
"""Return attribute value."""
if attr in self._values:
return self._values[attr]
return getattr(super(), attr)