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:
1 parent
89d856d147
commit
dd9d53c83e
84 files changed
+148
-130
No files matched your search
@@ -70,6 +70,6 @@ class IHCSwitch(IHCDevice, SwitchDevice):
|
||||
self.ihc_controller.set_runtime_value_bool(self.ihc_id, False)
|
||||
|
||||
def on_ihc_change(self, ihc_id, value):
|
||||
"""Callback when the IHC resource changes."""
|
||||
"""Handle IHC resource change."""
|
||||
self._state = value
|
||||
self.schedule_update_ha_state()
|
||||
@@ -77,7 +77,7 @@ class WemoSwitch(SwitchDevice):
|
||||
self._async_locked_subscription_callback(not updated))
|
||||
|
||||
async def _async_locked_subscription_callback(self, force_update):
|
||||
"""Helper to handle an update from a subscription."""
|
||||
"""Handle an update from a subscription."""
|
||||
# If an update is in progress, we don't do anything
|
||||
if self._update_lock.locked():
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user