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.07k stars 29.73k forks source link

Airtouch4 fails to start #120014

Closed thecastle20 closed 2 months ago

thecastle20 commented 2 months ago

The problem

Upgrade to 2024.6.3 causes Airtouch4 integration to fail starting. Log indicates this.

UnboundLocalError: cannot access local variable 'dataResult' where it is not associated with a value

What version of Home Assistant Core has the issue?

core-2024.6.3

What was the last working version of Home Assistant Core?

core-2024.6.2

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Airtouch4

Link to integration documentation on our website

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

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: 8:53:40 PM (1 occurrences)
Last logged: 8:53:40 PM

Error setting up entry 192.168.1.5 for airtouch4
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/airtouch4/__init__.py", line 21, in async_setup_entry
    await airtouch.UpdateInfo()
  File "/usr/local/lib/python3.12/site-packages/airtouch4pyapi/airtouch.py", line 65, in UpdateInfo
    await self.SendMessageToAirtouch(message)
  File "/usr/local/lib/python3.12/site-packages/airtouch4pyapi/airtouch.py", line 251, in SendMessageToAirtouch
    return self.TranslatePacketToMessage(dataResult)
                                         ^^^^^^^^^^
UnboundLocalError: cannot access local variable 'dataResult' where it is not associated with a value

Additional information

No response

home-assistant[bot] commented 2 months ago

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

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


airtouch4 documentation airtouch4 source (message by IssueLinks)

thecastle20 commented 2 months ago

Appears fixed in HA 2024.6.4