ollo69 / ha-smartthinq-sensors

HomeAssistant custom integration for SmartThinQ LG devices configurable with Lovelace User Interface.
Apache License 2.0
1.03k stars 149 forks source link

ERROR: Failed Setup, will retry: ThinQ platform not ready #766

Open robkjr opened 1 week ago

robkjr commented 1 week ago

Describe the bug SInce the last HACS update I receive the following with my ThinQ integration. This used to work perfectly but now seems broken.

Expected behavior HACS inegration worked prior to last update.

Screenshots image

Environment details:

Output of HA logs This seems to be the relevent log information 2024-06-21 08:11:35.461 WARNING (MainThread) [custom_components.smartthinq_sensors] Connection not available. ThinQ platform not ready Traceback (most recent call last): File "/config/custom_components/smartthinq_sensors/init.py", line 269, in async_setup_entry client = await lge_auth.create_client_from_token( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/smartthinq_sensors/init.py", line 153, in create_client_from_token return await ClientAsync.from_token( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 1605, in from_token await client.refresh() File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 1513, in refresh self._auth = await self.auth.refresh(True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 989, in refresh access_token, token_validity = await self._gateway.core.refresh_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 707, in refresh_auth out = await self._auth_request( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 653, in _auth_request oauth_url = await self.get_oauth_url() ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 436, in get_oauth_url async with self._get_session().post( File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 1197, in aenter self._resp = await self._coro ^^^^^^^^^^^^^^^^

Additional context Add any other context about the problem here.

Maxloader2000 commented 5 days ago

I'm having the exact same problem. On a reload of the integration i am getting this error log:

Error setting up entry LGE Devices for smartthinq_sensors 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 "/config/custom_components/smartthinq_sensors/init.py", line 286, in async_setup_entry lge_devices, unsupported_devices, discovered_devices = await lge_devices_setup( ^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/smartthinq_sensors/init.py", line 568, in lge_devices_setup if not await dev.init_device(): ^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/smartthinq_sensors/init.py", line 435, in init_device await self._create_coordinator() File "/config/custom_components/smartthinq_sensors/init.py", line 458, in _create_coordinator await coordinator.async_refresh() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 288, in async_refresh await self._async_refresh(log_failures=True) File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 312, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 268, in _async_update_data return await self.update_method() ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/smartthinq_sensors/init.py", line 463, in _async_update await self._async_state_update() File "/config/custom_components/smartthinq_sensors/init.py", line 475, in _async_state_update state = await self._device.poll() ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/smartthinq_sensors/wideq/devices/ac.py", line 914, in poll res = await self._device_poll( ^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/smartthinq_sensors/wideq/device.py", line 689, in _device_poll snapshot = await self._get_device_snapshot(thinq2_query_device) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/smartthinq_sensors/wideq/device.py", line 634, in _get_device_snapshot return await self._mon.refresh(query_device) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/smartthinq_sensors/wideq/device.py", line 153, in refresh if refresh_auth := await self._refresh_auth(): ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/smartthinq_sensors/wideq/device.py", line 113, in _refresh_auth return await self._refresh_client() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/smartthinq_sensors/wideq/device.py", line 117, in _refresh_client async with Monitor._client_lock: File "/usr/local/lib/python3.12/asyncio/locks.py", line 14, in aenter await self.acquire() File "/usr/local/lib/python3.12/asyncio/locks.py", line 113, in acquire await fut asyncio.exceptions.CancelledError

SpudsterZ commented 4 days ago

Ditto. Been this way for quite some time.

edterbak commented 2 days ago

I seem to have the same issue as well. It is not initializing with the message "Failed setup, will retry: Thinq platform not ready"

robkjr commented 1 day ago

Well I'm glad to see I'm not the only one. Is there anyone still monitoring this project to see if there's a fix?

robkjr commented 6 hours ago

Seems like LG has changed or broken something because now my Google Home app won't connect. I've lost all control over my LG devices except for the LG App.