From e1e602aacbabc774edc20f0731554080335cb90a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 20 Aug 2024 09:33:33 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/_ext/traverse_operators_sensors.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/docs/_ext/traverse_operators_sensors.py b/docs/_ext/traverse_operators_sensors.py index 4cd3b8343..5d21b14e3 100644 --- a/docs/_ext/traverse_operators_sensors.py +++ b/docs/_ext/traverse_operators_sensors.py @@ -29,7 +29,8 @@ def collect_elements( ): """ Checks that ``Async`` class definitions exist using ``ast.parse`` in the given files, that those are - ``operators/sensors`` and appends the operator/sensor along with its import path to the given output list. + ``operators/sensors`` and appends the operator/sensor along with its import path and deprecation status to the + given output list. :param directory_path: path of the directory in which the given ``files`` are located :param files: list of files to look for async operator/sensor class definitions @@ -98,9 +99,7 @@ def run(self): for index, operator in enumerate(operators, start=1): class_def_link = operator[2].replace(".", "/") + "/index.html#" + operator[2] + "." + operator[0] operators_html += ( - f"" - f"{index}" - f"{operator[0]}" + f"" f"{index}" f"{operator[0]}" ) if operator[1]: operators_html += "✅" @@ -131,9 +130,7 @@ def run(self): for index, sensor in enumerate(sensors, start=1): class_def_link = sensor[2].replace(".", "/") + "/index.html#" + sensor[2] + "." + sensor[0] sensors_html += ( - f"" - f"{index}" - f"{sensor[0]}" + f"" f"{index}" f"{sensor[0]}" ) if sensor[1]: sensors_html += "✅"