From 251b12a78ddbde7054eb173740d4eda90d07d75f Mon Sep 17 00:00:00 2001 From: Timon Horlboge Date: Fri, 9 Feb 2024 16:36:35 +0100 Subject: [PATCH] fix: switch to text attribute instead of string --- fritz_temp_sync/fritzbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fritz_temp_sync/fritzbox.py b/fritz_temp_sync/fritzbox.py index f49d8f3..5a3aaf6 100755 --- a/fritz_temp_sync/fritzbox.py +++ b/fritz_temp_sync/fritzbox.py @@ -178,7 +178,7 @@ class FritzBox: id = int(button[0].button["value"]) print("Temperature raw:", temperature) try: - temperature = float(temperature[0].string.split(" ")[0].replace(",", ".")) + temperature = float(temperature[0].text.split(" ")[0].replace(",", ".")) except: print("Error parsing temperature.") return []