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

@@ -58,7 +58,10 @@ class BMWConnectedDriveSensor(Entity):
@property
def should_poll(self) -> bool:
"""Data update is triggered from BMWConnectedDriveEntity."""
"""Return False.
Data update is triggered from BMWConnectedDriveEntity.
"""
return False
@property
+11 -5
View File
@@ -108,7 +108,7 @@ class FinTsClient:
"""
def __init__(self, credentials: BankCredentials, name: str):
"""Constructor for class FinTsClient."""
"""Initialize a FinTsClient."""
self._credentials = credentials
self.name = name
@@ -158,7 +158,7 @@ class FinTsAccount(Entity):
"""
def __init__(self, client: FinTsClient, account, name: str) -> None:
"""Constructor for class FinTsAccount."""
"""Initialize a FinTs balance account."""
self._client = client # type: FinTsClient
self._account = account
self._name = name # type: str
@@ -167,7 +167,10 @@ class FinTsAccount(Entity):
@property
def should_poll(self) -> bool:
"""Data needs to be polled from the bank servers."""
"""Return True.
Data needs to be polled from the bank servers.
"""
return True
def update(self) -> None:
@@ -218,7 +221,7 @@ class FinTsHoldingsAccount(Entity):
"""
def __init__(self, client: FinTsClient, account, name: str) -> None:
"""Constructor for class FinTsHoldingsAccount."""
"""Initialize a FinTs holdings account."""
self._client = client # type: FinTsClient
self._name = name # type: str
self._account = account
@@ -227,7 +230,10 @@ class FinTsHoldingsAccount(Entity):
@property
def should_poll(self) -> bool:
"""Data needs to be polled from the bank servers."""
"""Return True.
Data needs to be polled from the bank servers.
"""
return True
def update(self) -> None:
+1 -1
View File
@@ -77,6 +77,6 @@ class IHCSensor(IHCDevice, Entity):
return self._unit_of_measurement
def on_ihc_change(self, ihc_id, value):
"""Callback when IHC resource changes."""
"""Handle IHC resource change."""
self._state = value
self.schedule_update_ha_state()
+1 -1
View File
@@ -72,7 +72,7 @@ class UscisSensor(Entity):
@Throttle(MIN_TIME_BETWEEN_UPDATES)
def update(self):
"""Using Request to access USCIS website and fetch data."""
"""Fetch data from the USCIS website and update state attributes."""
import uscisstatus
try:
status = uscisstatus.get_case_status(self._case_id)
@@ -98,7 +98,7 @@ class WirelessTagSensor(WirelessTagBaseSensor):
else all_sensors)
def __init__(self, api, tag, sensor_type, config):
"""Constructor with platform(api), tag and hass sensor type."""
"""Initialize a WirelessTag sensor."""
super().__init__(api, tag)
self._sensor_type = sensor_type