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"])
|
id = int(button[0].button["value"])
|
||||||
print("Temperature raw:", temperature)
|
print("Temperature raw:", temperature)
|
||||||
try:
|
try:
|
||||||
temperature = float(temperature[0].string.split(" ")[0].replace(",", "."))
|
temperature = float(temperature[0].text.split(" ")[0].replace(",", "."))
|
||||||
except:
|
except:
|
||||||
print("Error parsing temperature.")
|
print("Error parsing temperature.")
|
||||||
return []
|
return []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user