Open kimnaeser opened 2 years ago
I have a new install and the same kinf of error Unexpected exception Traceback (most recent call last): File "/usr/local/lib/python3.9/asyncio/locks.py", line 413, in acquire await fut asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/lib/python3.9/asyncio/tasks.py", line 492, in wait_for fut.result() asyncio.exceptions.CancelledError
Recent update broke the fan integration
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/localtuya/common.py", line 74, in async_setup_entry entity_class( File "/config/custom_components/localtuya/fan.py", line 74, in init self._ordered_list = self._config.get(CONF_FAN_ORDERED_LIST).split(",") AttributeError: 'NoneType' object has no attribute 'split'
Recent update broke the fan integration
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/localtuya/common.py", line 74, in async_setup_entry entity_class( File "/config/custom_components/localtuya/fan.py", line 74, in init self._ordered_list = self._config.get(CONF_FAN_ORDERED_LIST).split(",") AttributeError: 'NoneType' object has no attribute 'split'
I had the same error message popping up after the update and couldn't control my fans. Switching back to v3.3.0 fixed it - in case you are looking for a workaround.
Same issue for me. Also a new install.
Logger: custom_components.localtuya.config_flow
Source: custom_components/localtuya/pytuya/__init__.py:240
Integration: LocalTuya ([documentation](https://github.com/rospogrigio/localtuya/), [issues](https://github.com/rospogrigio/localtuya/issues))
First occurred: 8:11:32 PM (5 occurrences)
Last logged: 8:46:55 PM
Unexpected exception
Traceback (most recent call last):
File "/usr/local/lib/python3.9/asyncio/locks.py", line 413, in acquire
await fut
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/asyncio/tasks.py", line 492, in wait_for
fut.result()
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/config/custom_components/localtuya/config_flow.py", line 279, in async_step_basic_info
self.dps_strings = await validate_input(self.hass, user_input)
File "/config/custom_components/localtuya/config_flow.py", line 192, in validate_input
detected_dps = await interface.detect_available_dps()
File "/config/custom_components/localtuya/pytuya/__init__.py", line 510, in detect_available_dps
data = await self.status()
File "/config/custom_components/localtuya/pytuya/__init__.py", line 472, in status
status = await self.exchange(STATUS)
File "/config/custom_components/localtuya/pytuya/__init__.py", line 451, in exchange
msg = await self.dispatcher.wait_for(seqno)
File "/config/custom_components/localtuya/pytuya/__init__.py", line 240, in wait_for
await asyncio.wait_for(self.listeners[seqno].acquire(), timeout=timeout)
File "/usr/local/lib/python3.9/asyncio/tasks.py", line 494, in wait_for
raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError
Logger: homeassistant.helpers.entity Source: helpers/entity.py:583 First occurred: 22:56:55 (2 occurrences) Last logged: 23:01:28
Entity switch.bad (<class 'custom_components.localtuya.switch.LocaltuyaSwitch'>) implements device_state_attributes. Please report it to the custom component author. Entity switch.bridge (<class 'custom_components.localtuya.switch.LocaltuyaSwitch'>) implements device_state_attributes. Please report it to the custom component author.
This error originated from a custom integration.
Logger: custom_components.localtuya.common Source: custom_components/localtuya/pytuya/init.py:240 Integration: LocalTuya First occurred: 23:03:16 (1 occurrences) Last logged: 23:03:16
[bf2...x9c] Connect to 192.168.1.162 failed Traceback (most recent call last): File "/usr/local/lib/python3.9/asyncio/locks.py", line 413, in acquire await fut asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/lib/python3.9/asyncio/tasks.py", line 492, in wait_for fut.result() asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/config/custom_components/localtuya/common.py", line 149, in _make_connection status = await self._interface.status() File "/config/custom_components/localtuya/pytuya/init.py", line 472, in status status = await self.exchange(STATUS) File "/config/custom_components/localtuya/pytuya/init.py", line 451, in exchange msg = await self.dispatcher.wait_for(seqno) File "/config/custom_components/localtuya/pytuya/init.py", line 240, in wait_for await asyncio.wait_for(self.listeners[seqno].acquire(), timeout=timeout) File "/usr/local/lib/python3.9/asyncio/tasks.py", line 494, in wait_for raise exceptions.TimeoutError() from exc asyncio.exceptions.TimeoutError
This error originated from a custom integration.
Logger: custom_components.localtuya.common Source: custom_components/localtuya/pytuya/init.py:554 Integration: LocalTuya (documentation, issues) First occurred: 23:23:38 (8 occurrences) Last logged: 23:24:34
[bf2...x9c] Connect to 192.168.1.162 failed Traceback (most recent call last): File "/config/custom_components/localtuya/common.py", line 149, in _make_connection status = await self._interface.status() File "/config/custom_components/localtuya/pytuya/init.py", line 472, in status status = await self.exchange(STATUS) File "/config/custom_components/localtuya/pytuya/init.py", line 457, in exchange payload = self._decode_payload(msg.payload) File "/config/custom_components/localtuya/pytuya/init.py", line 554, in _decode_payload raise Exception(f"Unexpected payload={payload}") Exception: Unexpected payload=b'\xf6n\xe7\x0c\xbf\xaf Z\xf7\r\x08\x9e\xaa\x17[v\x9fFAt\xe0\xb7\xddq\x14\xb1\xf9*\xc6\xa5\x8f\xa4'