Skip to content

Commit

Permalink
Ignore D202 where necessary
Browse files Browse the repository at this point in the history
This is required as PyCQA/pydocstyle#426 does not
fix the issue for async def'd inner functions.
  • Loading branch information
rytilahti committed Apr 25, 2020
1 parent 28c1811 commit f9ea1a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kasa/smartdevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ def device_id(self) -> str:
"""
return self.mac

async def wifi_scan(self) -> List[WifiNetwork]:
async def wifi_scan(self) -> List[WifiNetwork]: # noqa: D202
"""Scan for available wifi networks."""

async def _scan(target):
Expand All @@ -614,7 +614,7 @@ async def _scan(target):

return [WifiNetwork(**x) for x in info["ap_list"]]

async def wifi_join(self, ssid, password, keytype=3):
async def wifi_join(self, ssid, password, keytype=3): # noqa: D202
"""Join the given wifi network.
If joining the network fails, the device will return to AP mode after a while.
Expand Down

0 comments on commit f9ea1a4

Please sign in to comment.