h4de5 / home-assistant-toshiba_ac

Toshiba AC integration into home-assistant.io
GNU General Public License v3.0
127 stars 18 forks source link

HA failing to setup integration after updating Adapter version to 2.4.00 #159

Closed taher51 closed 9 months ago

taher51 commented 9 months ago

Hi All,

I am experiencing a new issue where the Toshiba AC integration is now failing to load. The only new thing I have done recently is update the adapter version in the internal units to version 2.4.00.

My setup: Toshiba Haori R32 RAS5M....... external unit.

Below is the error I am seeing. Any help would be much appreciated.

Logger: custom_components.toshiba_ac.config_flow Source: custom_components/toshiba_ac/config_flow.py:77 Integration: Toshiba AC (documentation, issues) First occurred: 18:35:19 (1 occurrences) Last logged: 18:35:19

Unexpected exception Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/azure/iot/device/iothub/aio/async_clients.py", line 33, in handle_result return await callback.completion() ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/azure/iot/device/common/async_adapter.py", line 91, in completion return await self.future ^^^^^^^^^^^^^^^^^ azure.iot.device.common.pipeline.pipeline_exceptions.OperationTimeout: OperationTimeout('Transport timeout on connection operation')

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/config/custom_components/toshiba_ac/config_flow.py", line 77, in async_step_user data = await validate_input(self.hass, user_input) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/toshiba_ac/config_flow.py", line 41, in validate_input sas_token = await device_manager.connect() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/toshiba_ac/device_manager.py", line 64, in connect self.amqp_api = ToshibaAcAmqpApi(self.sas_token) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/toshiba_ac/utils/amqp_api.py", line 35, in init self.device.on_method_request_received = self.method_request_received ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/azure/iot/device/iothub/abstract_clients.py", line 479, in on_method_request_received self._generic_receive_handler_setter( File "/usr/local/lib/python3.11/site-packages/azure/iot/device/iothub/aio/async_clients.py", line 161, in _generic_receive_handler_setter fut.result() File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 456, in result return self.get_result() ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 401, in get_result raise self._exception File "/usr/local/lib/python3.11/site-packages/azure/iot/device/iothub/aio/async_clients.py", line 113, in _enable_feature await handle_result(callback) File "/usr/local/lib/python3.11/site-packages/azure/iot/device/iothub/aio/async_clients.py", line 59, in handle_result raise exceptions.OperationTimeout( azure.iot.device.exceptions.OperationTimeout: OperationTimeout('Could not complete operation before timeout') caused by OperationTimeout('Transport timeout on connection operation')

beandi commented 9 months ago

Not much helpful, but after upgrading to 2.4.00 everything still works fine. I'm yet still on HA 2023.10.1

taher51 commented 9 months ago

This has been resolved with the latest update of this integration.