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

Can`t login after reboot HA, can't connect to any device #719

Closed santo76 closed 3 months ago

santo76 commented 3 months ago

Describe the bug After restart HA, it can't connect again with LG devices

Expected behavior Lg extension must connect with lg cloud, to manage devices

Captura de pantalla 2024-03-14 a las 9 30 26

Screenshots

Captura de pantalla 2024-03-14 a las 9 30 42

Environment details:

Output of HA logs Este error se originó a partir de una integración personalizada.

Registrador: custom_components.smartthinq_sensors Fuente: custom_components/smartthinq_sensors/init.py:294 integración: SmartThinQ LGE Sensors (documentación, problemas) Ocurrió por primera vez: 08:58:08 (1 ocurrencias) Último inicio de sesión: 08:58:08

Connection not available. ThinQ platform not ready Traceback (most recent call last): File "/config/custom_components/smartthinq_sensors/init.py", line 294, in async_setup_entry lge_devices, unsupported_devices, discovered_devices = await lge_devices_setup( ^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/smartthinq_sensors/init.py", line 618, in lge_devices_setup if not await init_device(lge_dev, device_info, root_dev): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/smartthinq_sensors/init.py", line 574, in init_device if not await dev.init_device(): ^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/smartthinq_sensors/init.py", line 447, in init_device if not await self._device.init_device_info(): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/smartthinq_sensors/wideq/device.py", line 467, in init_device_info self._model_data = await self._client.model_url_info( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 1705, in model_url_info if not (model_url_info := await self._load_json_info(url)): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 1634, in _load_json_info content = await self._auth.gateway.core.http_get_bytes(info_url) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 312, in http_get_bytes async with self._get_session().get( File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 1194, in aenter self._resp = await self._coro ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 504, in _request with timer: File "/usr/local/lib/python3.12/site-packages/aiohttp/helpers.py", line 735, in exit raise asyncio.TimeoutError from None TimeoutError

Additional context I try to update with last version and the problem persists

santo76 commented 3 months ago

Hello it's working now, i haven't done anything and it works againg.

i have not restarted HA and it's working, close issue