core: Fritzbox Tool Error

The problem

Hi/Hallo, 2 qustions. 1. Following error shows up a few times daily. HA core 2025.2.1 (as 2.2 is buggy) Error log:

Logger: homeassistant.components.fritz.coordinator
Quelle: helpers/update_coordinator.py:380
Integration: AVM FRITZ!Box Tools (Dokumentation, Probleme)
Erstmals aufgetreten: 21:38:38 (2 Vorkommnisse)
Zuletzt protokolliert: 21:40:42

Unexpected error fetching fritz-192.168.178.1-coordinator data
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/fritz/coordinator.py", line 442, in _async_update_hosts_info
    hosts_attributes = await self.hass.async_add_executor_job(
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        self.fritz_hosts.get_hosts_attributes
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.13/site-packages/fritzconnection/lib/fritzhosts.py", line 216, in get_hosts_attributes
    storage = HostStorage(get_xml_root(source=url, session=self.fc.session))
                          ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/fritzconnection/core/utils.py", line 83, in get_xml_root
    return etree.fromstring(source)
           ~~~~~~~~~~~~~~~~^^^^^^^^
  File "/usr/local/lib/python3.13/xml/etree/ElementTree.py", line 1343, in XML
    return parser.close()
           ~~~~~~~~~~~~^^
xml.etree.ElementTree.ParseError: no element found: line 1052, column 0

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 380, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/fritz/coordinator.py", line 337, in _async_update_data
    await self.async_scan_devices()
  File "/usr/src/homeassistant/homeassistant/components/fritz/coordinator.py", line 570, in async_scan_devices
    hosts = await self._async_update_hosts_info()
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/fritz/coordinator.py", line 451, in _async_update_hosts_info
    raise HomeAssistantError(
    ...<2 lines>...
    ) from ex
homeassistant.exceptions.HomeAssistantError: Error refreshing hosts info

  1. Question: How to update this integration? Can’t finde any way to update, but github showa newer files…

Please helo about the error AND how to update Fritzboxx Tools to latest version. Thanks a lot in advance.

What version of Home Assistant Core has the issue?

2025.2.1 … earlier and 2.2 buggy version too

What was the last working version of Home Assistant Core?

2025.2.1

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Fritzbox Tools

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet


Anything in the logs that might be useful for us?


Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 43 (16 by maintainers)

Most upvoted comments

We are an English speaking community, so every communication here is in English, so the community is able to help with your issue. Btw using the translator is not just an option “for all others”, but also for you 😉 Further this is not the right place for politics! thx 👍

Da du Deutscher bist (und ich seit Trump möglichst das Englische meide) nun hier logo in Deutsch:

Ich will ja Nichts sagen… aber da stimmt jede Menge hinten und vorne nicht, nicht nur bei der Fritz Tools Integration. Logo spammt es da massenhaft Fehler. Deaktiviere mal nach und nach von Tuya bis Fritz Gedöns, bis fehlerfrei. Dann nach und nach aktivieren, bis das Fehlergespamme wieder los geht. Dann: Das Ganze ab der betr. Integration mal sauber neu aufsetzen, es könnte helfen.

Hat aber null mit meinem Threatthema zu tun, da multiple Fehler vieler Integrationen. Vermutlich stimmt da Etwas im Lan nicht, da Tuya, Fritz usw. Lan Geschichten betr. HA sind.

Mein Thread Thema Problem wurde ja gelöst, hatte mit dem Haken bei “Trennung in Stunde xx verlegen” zu tun… da in die Irre führende Überbleibsel-Geschichte von AVM (Fritz) betr. Bezeichnung/Zusammenhang in älteren Boxen as mine .

Wem Deutsch nicht passt, Google translated Alles 🤷🏼‍♂️.

Any news about the bug and its solution ?

without https://github.com/home-assistant/core/issues/138417#issuecomment-2764529685 I can’t analyse anything, as this doesn’t happen with my fritzbox

As any Fritzbox is getting daily new IP

That’s not true 😉 some ISPs meanwhile don’t do a daily ip-renewal anymore, because it would interrupt voice-over-ip calls (which could also be an emergency call) and TV streams - I’ve disabled the foced ip-renewal and have the same IP since the last reboot of my Fritzbox:

Image

Okay. Sorry about confusing about fritz home and fritz tools 😟.

This kind of automation to adjust polling, is exactly what I did for a few days (I told already before).

Took a long time / a few days, but once the error showed up again. (gladly not 10 times a day as usedö)

What I did after, was:

  1. enable logging (Fritz Tools) and
  2. adjustet polling intervall from 1 Min. up to 2 Min. (default “hidden” intervall is 30 Sec., assuming to some concerning web infos)

As soon aa any error will show up again, it should be catched by the logging and will be posted here by myself. Hopefully its gone now by the 2 Min. polling “limiter”. Thanks for all your efforts and infos.

check the new .3 version. that helped me.

Let’s start answering the 2nd question: You can’t update a single integration in HA core as they are bundled and delivered as one release.

About the first one - please provide the debug log as described in the troubleshooting section of the integration docs, thx 👍