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