mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-03-13 20:11:32 +00:00
Ignore D202 where necessary (#50)
This is required as https://github.com/PyCQA/pydocstyle/pull/426 does not fix the issue for async def'd inner functions.
This commit is contained in:
parent
28c1811aef
commit
51af7809ec
@ -595,7 +595,7 @@ class SmartDevice:
|
||||
"""
|
||||
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):
|
||||
@ -614,7 +614,7 @@ class SmartDevice:
|
||||
|
||||
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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user