fix: switch to text attribute instead of string
This commit is contained in:
parent
b74207f5bb
commit
251b12a78d
@ -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 []
|
||||
|
Loading…
x
Reference in New Issue
Block a user