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
71.78k stars 30.02k forks source link

Wolflink stopped working in core-2024.10.0b1 #126879

Open eupesco opened 4 hours ago

eupesco commented 4 hours ago

The problem

After update to b1 (Core 2024.10.0b1, Supervisor 2024.09.1, Operating System 13.1), the Wolflink integration is not running properly anymore.

What version of Home Assistant Core has the issue?

core-2024.10.0b1

What was the last working version of Home Assistant Core?

core-2024.10.0b0

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Wolflink

Link to integration documentation on our website

https://rc.home-assistant.io/integrations/wolflink

Diagnostics information

home-assistant_wolflink_2024-09-27T04-42-41.733Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.config_entries
Quelle: config_entries.py:594
Erstmals aufgetreten: 06:42:40 (1 Vorkommnisse)
Zuletzt protokolliert: 06:42:40

Error setting up entry Heizung for wolflink
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/wolf_comm/token_auth.py", line 113, in token
    raise InvalidAuth
wolf_comm.token_auth.InvalidAuth

During handling of the above exception, another exception occurred:

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/wolflink/__init__.py", line 54, in async_setup_entry
    parameters = await fetch_parameters_init(wolf_client, gateway_id, device_id)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/wolflink/__init__.py", line 168, in fetch_parameters_init
    return await fetch_parameters(client, gateway_id, device_id)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/wolflink/__init__.py", line 161, in fetch_parameters
    fetched_parameters = await client.fetch_parameters(gateway_id, device_id)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/wolf_comm/wolf_client.py", line 114, in fetch_parameters
    desc = await self.__request('get', 'api/portal/GetGuiDescriptionForGateway', params=payload)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/wolf_comm/wolf_client.py", line 60, in __request
    await self.__authorize_and_session()
  File "/usr/local/lib/python3.12/site-packages/wolf_comm/wolf_client.py", line 94, in __authorize_and_session
    self.tokens = await self.token_auth.token(self.client)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/wolf_comm/token_auth.py", line 115, in token
    raise InvalidAuth
wolf_comm.token_auth.InvalidAuth

Logger: homeassistant.config_entries
Quelle: config_entries.py:594
Erstmals aufgetreten: 06:39:53 (3 Vorkommnisse)
Zuletzt protokolliert: 06:41:36

Error setting up entry Heizung for wolflink
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/wolflink/__init__.py", line 54, in async_setup_entry
    parameters = await fetch_parameters_init(wolf_client, gateway_id, device_id)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/wolflink/__init__.py", line 168, in fetch_parameters_init
    return await fetch_parameters(client, gateway_id, device_id)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/wolflink/__init__.py", line 161, in fetch_parameters
    fetched_parameters = await client.fetch_parameters(gateway_id, device_id)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/wolf_comm/wolf_client.py", line 127, in fetch_parameters
    name = self.replace_with_localized_text(key) + ' ' + self.replace_with_localized_text(spaceSplit[1])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/wolf_comm/wolf_client.py", line 140, in replace_with_localized_text
    if self.language is not None and text in self.language:
       ^^^^^^^^^^^^^
AttributeError: 'WolfClient' object has no attribute 'language'

Additional information

No response

home-assistant[bot] commented 4 hours ago

Hey there @adamkrol93, @mtielen, mind taking a look at this issue as it has been labeled with an integration (wolflink) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `wolflink` 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 wolflink` 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)


wolflink documentation wolflink source (message by IssueLinks)

mtielen commented 4 hours ago

Fix has been provided yesterday