fix: switch to text attribute instead of string

This commit is contained in:
Timon Horlboge 2024-02-09 16:36:35 +01:00
parent b74207f5bb
commit 251b12a78d

View File

@ -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 []