Skip to content

LG ThinQ integration cannot be added and errors are made.  #129564

Description

@hyeok-yoo

The problem

I was trying to link LG ThinQ integration. The PAT token was issued normally, but I tried to link it to HA, but suddenly the setting failure appeared, and no device appeared. Looking at the log, I think it's because it's a water purifier.

`로거: homeassistant.config_entries
소스: /usr/src/homeassistant/homeassistant/config_entries.py:719
처음 발생: 오후 6:30:01 (1 발생)
마지막 로그인: 오후 6:30:01

Error setting up entry LG ThinQ for lg_thinq
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 635, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/lg_thinq/__init__.py", line 71, in async_setup_entry
    await async_setup_coordinators(hass, entry, thinq_api)
  File "/usr/src/homeassistant/homeassistant/components/lg_thinq/__init__.py", line 93, in async_setup_coordinators
    bridge_list = await async_get_ha_bridge_list(thinq_api)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/thinqconnect/integration/homeassistant/api.py", line 739, in async_get_ha_bridge_list
    task_result = await asyncio.gather(*task_list)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/thinqconnect/integration/homeassistant/api.py", line 785, in _async_create_ha_bridges
    else constructor(
         ^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/thinqconnect/devices/water_purifier.py", line 46, in __init__
    profiles=WaterPurifierProfile(profile=profile),
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/thinqconnect/devices/water_purifier.py", line 16, in __init__
    super().__init__(
  File "/usr/local/lib/python3.12/site-packages/thinqconnect/devices/connect_device.py", line 47, in __init__
    self.generate_properties(
  File "/usr/local/lib/python3.12/site-packages/thinqconnect/devices/connect_device.py", line 235, in generate_properties
    resource_property = property.get(resource)
                        ^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'`

What version of Home Assistant Core has the issue?

core-2024.11.0b0

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

LG ThinQ

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions