From eebcf70b41aec5b4614051471119bf8ddf8628df Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 2 Mar 2023 19:01:05 +0100 Subject: [PATCH] Re-enable Ruff D411 (#89035) --- homeassistant/components/esphome/bluetooth/client.py | 4 ++++ pyproject.toml | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/esphome/bluetooth/client.py b/homeassistant/components/esphome/bluetooth/client.py index 7eb38edbf44..545a436ee8b 100644 --- a/homeassistant/components/esphome/bluetooth/client.py +++ b/homeassistant/components/esphome/bluetooth/client.py @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 10fa38be35e..c0c23166880 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 ]