From 833e2d0797dea5054a19c0b98157a75103690125 Mon Sep 17 00:00:00 2001 From: stephan192 Date: Sat, 1 Mar 2025 19:16:15 +0100 Subject: [PATCH] Reformat code with black 25.1.0 --- src/lhpapi/hh_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lhpapi/hh_api.py b/src/lhpapi/hh_api.py index 1dacd7b..3dc3dcb 100644 --- a/src/lhpapi/hh_api.py +++ b/src/lhpapi/hh_api.py @@ -54,14 +54,14 @@ def update_HH(static_data: StaticData) -> DynamicData: # pylint: disable=invali text = div.getText() level = convert_to_float( text[ - text.find("Wasserstand") + 11 : text.find("[NHN\u00A0+/-\u00A0cm]") + text.find("Wasserstand") + 11 : text.find("[NHN\u00a0+/-\u00a0cm]") ] .replace(".", "") .strip() ) last_update = convert_to_datetime( text[ - text.find("\u00A0\u00A0\u00A0 um") + 6 : text.find("Trend") + text.find("\u00a0\u00a0\u00a0 um") + 6 : text.find("Trend") ].strip(), "%d.%m.%Y %H:%M", )