Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error unloading #184

Open
thorin8k opened this issue Dec 28, 2024 · 3 comments
Open

Error unloading #184

thorin8k opened this issue Dec 28, 2024 · 3 comments

Comments

@thorin8k
Copy link

thorin8k commented Dec 28, 2024

I've recently started using this custom component and everything seems to work fine until night. It has happened two days, when I wake up the tuya integration says that all devices are unavailable and this error is in the logs:

Fuente: config_entries.py:855
Ocurrió por primera vez: 08:00:00 (1 ocurrencias)
Última vez registrado: 08:00:00

Error unloading entry [email protected] for tuya
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 855, in async_unload
    result = await component.async_unload_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/xtend_tuya/multi_manager/tuya_sharing/ha_tuya_integration/tuya_decorators.py", line 30, in wrapped
    await callback(False, *args, **kwargs)
  File "/config/custom_components/xtend_tuya/multi_manager/tuya_sharing/ha_tuya_integration/config_entry_handler.py", line 43, in on_tuya_unload_entry
    self.manager.reuse_config = False
    ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: property 'reuse_config' of 'XTSharingDeviceManager' object has no setter

Specs:

  • HA version: 2024.12.3
  • HAOS version: 13.1
  • xtend tuya: 3.0.7
@thorin8k
Copy link
Author

I've found something else. I forgot I had an automation to reload the main tuya integration every day.

The problem happens when trying to reload the main tuya integration.

Maybe once xtend tuya is installed, the main one cannot be reloaded?

When reloading the xtend tuya, it reloads the whole tuya devices?

@azerty9971 azerty9971 added the Pending release Fix is ready in alpha and will be in beta soon label Jan 21, 2025
@azerty9971
Copy link
Owner

Hello,
This has been fixed in my dev branch, I'll publish a release soon (testing some other stuff before doing the release).

Sorry for the inconvenience,
Azerty

@azerty9971 azerty9971 added Awaiting fix confirmation and removed Pending release Fix is ready in alpha and will be in beta soon labels Jan 26, 2025
@azerty9971
Copy link
Owner

Hello,
Can you retry with 3.0.8-beta.1?

It should fix the issue :).

Have a nice day,
Azerty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants