Re-enable Ruff D411 (#89035)

pull/87653/head
epenet 2023-03-02 19:01:05 +01:00 committed by GitHub
parent e849878a48
commit eebcf70b41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -234,6 +234,7 @@ class ESPHomeClient(BaseBleakClient):
Keyword Args:
timeout (float): Timeout for required
``BleakScanner.find_device_by_address`` call. Defaults to 10.0.
Returns:
Boolean representing connection status.
"""
@ -504,6 +505,7 @@ class ESPHomeClient(BaseBleakClient):
The characteristic to read from, specified by either integer
handle, UUID or directly by the BleakGATTCharacteristic
object representing it.
Returns:
(bytearray) The read data.
"""
@ -519,6 +521,7 @@ class ESPHomeClient(BaseBleakClient):
Args:
handle (int): The handle of the descriptor to read from.
Returns:
(bytearray) The read data.
"""
@ -583,6 +586,7 @@ class ESPHomeClient(BaseBleakClient):
def callback(sender: int, data: bytearray):
print(f"{sender}: {data}")
client.start_notify(char_uuid, callback)
Args:
characteristic (BleakGATTCharacteristic):
The characteristic to activate notifications/indications on a

View File

@ -271,7 +271,6 @@ ignore = [
"D404", # First word of the docstring should not be This
"D406", # Section name should end with a newline
"D407", # Section name underlining
"D411", # Missing blank line before section
"E501", # line too long
"E731", # do not assign a lambda expression, use a def
]