You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I cannot remove my Arlec PB88UHA Series 2 Powerboard (which has failed).
Attempting to remove the device results in:
Error while removing entity lock.arlec_pb88uha_series_2_powerboard_child_lock
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1378, in async_remove
await self.__async_remove_impl(force_remove)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1394, in __async_remove_impl
await self.async_will_remove_from_hass()
File "/config/custom_components/tuya_local/helpers/mixin.py", line 111, in async_will_remove_from_hass
await self._device.async_unregister_entity(self)
File "/config/custom_components/tuya_local/device.py", line 194, in async_unregister_entity
await self.async_stop()
File "/config/custom_components/tuya_local/device.py", line 169, in async_stop
await self._refresh_task
File "/config/custom_components/tuya_local/device.py", line 199, in receive_loop
async for poll in self.async_receive():
File "/config/custom_components/tuya_local/device.py", line 321, in async_receive
await asyncio.sleep(0.1 if self.has_returned_state else 5)
File "/usr/local/lib/python3.12/asyncio/tasks.py", line 665, in sleep
return await future
^^^^^^^^^^^^
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 910, in async_reset
await entity.async_remove()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1383, in async_remove
self.__remove_future.set_result(None)
asyncio.exceptions.InvalidStateError: invalid state
To Reproduce
Add a device which has a lock component.
Take the device offline (e.g. unplugging it).
Lock will enter the unavailable state in HA.
Attempt to remove device from tuya-local. It will fail with the above result.
Expected behavior
The device should remove itself gracefully.
Additional context
I did not remove the device from tuya-local for 1 month. I'm not sure if this has any bearing on the matter.
Describe the bug
I cannot remove my Arlec PB88UHA Series 2 Powerboard (which has failed).
Attempting to remove the device results in:
To Reproduce
Expected behavior
The device should remove itself gracefully.
Additional context
I did not remove the device from tuya-local for 1 month. I'm not sure if this has any bearing on the matter.
Device Diagnostics from HA below
The text was updated successfully, but these errors were encountered: