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
74.09k stars 31.09k forks source link

Harmony integration fails to load #129660

Open ajcutshall opened 4 weeks ago

ajcutshall commented 4 weeks ago

The problem

The harmony integration for Harmony Hub fails to load on 2024.10.4.

What version of Home Assistant Core has the issue?

2024.10.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Harmony

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.config_entries
Source: config_entries.py:594
First occurred: 7:21:53 PM (1 occurrences)
Last logged: 7:21:53 PM

Error setting up entry Harmony Hub for harmony
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/harmony/__init__.py", line 28, in async_setup_entry
    await data.connect()
  File "/usr/src/homeassistant/homeassistant/components/harmony/data.py", line 118, in connect
    connected = await self._client.connect()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aioharmony/harmonyapi.py", line 149, in connect
    return await self._harmony_client.connect()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aioharmony/harmonyclient.py", line 185, in connect
    with timeout(DEFAULT_TIMEOUT):
TypeError: 'Timeout' object does not support the context manager protocol

Additional information

No response

home-assistant[bot] commented 4 weeks ago

Hey there @ehendrix23, @bdraco, @mkeesey, @aohzan, mind taking a look at this issue as it has been labeled with an integration (harmony) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `harmony` 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 harmony` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


harmony documentation harmony source (message by IssueLinks)

Aohzan commented 4 weeks ago

fixed by https://github.com/home-assistant/core/pull/129592