core: AVM FRITZ!Box Tools: failed to set up with firmware 07.27

The problem

FRITZ!Box is unaible to start since I updated the firmware of my Fritzbox 4040 to version 07.27. It was working fine with the previous firmware. See the error below:

Logger: homeassistant.config_entries
Source: config_entries.py:324
First occurred: 12:48:25 (1 occurrences)
Last logged: 12:48:25

Config entry 'FRITZ!Box 4040' for fritz integration not ready yet: Unable to perform operation. 401 Unauthorized (ERR_NONE)401 UnauthorizedERR_NONEWebserver Fri, 23 Jul 2021 10:48:25 GMT ; Retrying in background
Logger: homeassistant.config_entries
Source: components/fritz/common.py:115
First occurred: 13:03:55 (1 occurrences)
Last logged: 13:03:55

Error setting up entry FRITZ!Box 4040 for fritz
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 293, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/usr/src/homeassistant/homeassistant/components/fritz/__init__.py", line 36, in async_setup_entry
    await fritz_tools.async_setup()
  File "/usr/src/homeassistant/homeassistant/components/fritz/common.py", line 102, in async_setup
    await self.hass.async_add_executor_job(self.setup)
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/fritz/common.py", line 115, in setup
    info = self.connection.call_action("DeviceInfo:1", "GetInfo")
  File "/usr/local/lib/python3.9/site-packages/fritzconnection/core/fritzconnection.py", line 227, in call_action
    return self.soaper.execute(service, action_name, arguments)
  File "/usr/local/lib/python3.9/site-packages/fritzconnection/core/soaper.py", line 238, in execute
    return handle_response(response)
  File "/usr/local/lib/python3.9/site-packages/fritzconnection/core/soaper.py", line 222, in handle_response
    raise_fritzconnection_error(response)
  File "/usr/local/lib/python3.9/site-packages/fritzconnection/core/soaper.py", line 139, in raise_fritzconnection_error
    text = node.text.strip()
AttributeError: 'NoneType' object has no attribute 'strip'

What is version of Home Assistant Core has the issue?

core-2021.7.3

What was the last working version of Home Assistant Core?

core-2021.7.3

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

AVM FRITZ!Box Tools

Link to integration documentation on our website

https://www.home-assistant.io/integrations/fritz/

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

Hi Simone and Aaron, i’ve removed and reinstalled the integration and used username fritzXXXX. It’s working nicely since then.

Thx to report back

I don’t think it’s worth the effort to find out why the error occured after the firmware update. If other users start mentioning the same, we could come back on this.

It was a change to update upstream library to handle such situation.

Simone

Hi Simone and Aaron, i’ve removed and reinstalled the integration and used username fritzXXXX. It’s working nicely since then. I don’t think it’s worth the effort to find out why the error occured after the firmware update. If other users start mentioning the same, we could come back on this.

Thank you for all the help.

A jupyter notebook sounds good. Drop a mail and we can schedule a session. I won’t be at home over the weekend. But next week would work. Drop a mail: Aaron.David.Schneider@gmail.com