home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.65k stars 30.79k forks source link

Freebox integration is failing since 2023.5 #93100

Closed majesty54 closed 1 year ago

majesty54 commented 1 year ago

The problem

hello, since 2023.5.2 update the freebox integration is throwing exception and entities and devices are not usable anymore.

Rolling back 2023.4.6 is ok.

thank you

What version of Home Assistant Core has the issue?

2023.5.3

What was the last working version of Home Assistant Core?

2023.4.6

What type of installation are you running?

Home Assistant Core

Integration causing the issue

freebox

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

logger: homeassistant
Source: custom_components/freebox/config_flow.py:158
Integration: Freebox
First occurred: 22:02:54 (1 occurrences)
Last logged: 22:02:54
Error doing job: Task exception was never retrieved

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/discovery_flow.py", line 95, in _async_start
    await gather_with_concurrency(
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 178, in gather_with_concurrency
    return await gather(
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 176, in sem_task
    return await task
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 845, in async_init
    flow, result = await task
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 873, in _async_init
    result = await self._async_handle_step(flow, flow.init_step, data)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 367, in _async_handle_step
    result: FlowResult = await getattr(flow, method)(user_input)
  File "/config/custom_components/freebox/config_flow.py", line 158, in async_step_zeroconf
    host = discovery_info["properties"]["api_domain"]
TypeError: 'ZeroconfServiceInfo' object is not subscriptable

2023-05-15 11:13:48.039 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry xxxxxxx.fbxos.fr for freebox
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/config/custom_components/freebox/__init__.py", line 55, in async_setup_entry
    hass.config_entries.async_setup_platforms(entry, PLATFORMS)
AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms'

Additional information

No response

home-assistant[bot] commented 1 year ago

Hey there @hacf-fr, @quentame, mind taking a look at this issue as it has been labeled with an integration (freebox) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `freebox` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign freebox` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


freebox documentation freebox source (message by IssueLinks)

epenet commented 1 year ago

You are using a custom component for freebox. You should remove it and use the internal freebox integration, or raise it on the custom component repository.

majesty54 commented 1 year ago

Yes that's right, I forgot about that sorry... Found a solution : edit the file /config/custom_components/freebox/init.py and replace:

hass.config_entries.async_setup_platforms(entry, PLATFORMS)

hass.async_create_task(hass.config_entries.async_forward_entry_setups(entry, PLATFORMS))