Fritz Device Tracker broke after upgrading to 0.105.x

i have updated to .105.1. After serveral issues with that Version i’ve downgraded to 104.3. Since that my Fritz Device Tracker ist broken. None of the Device are shown present.

The Log shows this:

Tue Feb 11 2020 20:24:39 GMT+0100 (Mitteleuropäische Normalzeit)
Platform error: device_tracker
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config.py", line 760, in async_process_component_config
    platform = p_integration.get_platform(domain)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 265, in get_platform
    f"{self.pkg_path}.{platform_name}"
  File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/src/homeassistant/homeassistant/components/fritz/device_tracker.py", line 4, in <module>
    from fritzconnection import FritzHosts  # pylint: disable=import-error
ImportError: cannot import name 'FritzHosts' from 'fritzconnection' (/usr/local/lib/python3.7/site-packages/fritzconnection/__init__.py)

Any Help with that?

My Hardware is an RPI4 4GB.

Hi @kostak
I had the same issue, but found the solution, if you haven’t found it yet.
There was a typo on the component files.

See this github: https://github.com/home-assistant/home-assistant/commit/be388a479786849438668a3f81d3b0e9d004235e

what worked for me is:

sudo nano ~/homeassistant/lib/python3.7/site-packages/homeassistant/components/fritz/manifest.json

replace the text with the following:

{
  "domain": "fritz",
  "name": "AVM FRITZ!Box",
  "documentation": "https://www.home-assistant.io/integrations/fritz",
  "requirements": ["fritzconnection==1.2.0"],
  "dependencies": [],
  "codeowners": []
}

Or in my case, I commented out everything and added the above to it.
Good luck!

I have found the Solution. It was the HACS AVM Addon. It brokes the internal addon. After deinstalling the Hacs addon everything works fines again.

1 Like

Thanks! I have since moved to a different router. but good to know!