make-all / tuya-local

Local support for Tuya devices in Home Assistant
MIT License
1.41k stars 542 forks source link

Migration error #2380

Closed Patbonamy closed 1 month ago

Patbonamy commented 1 month ago

This form is for reporting bugs. If you have encountered a bug, you should generally have some log messages or device diagnostics to show something is going wrong. If your problem is more of a question or a request for help, then Discussions is probably a more suitable venue.

Describe the bug Error when updated 2.8.0 to 2.9.1 all my device cannot be configured.

Log : Enregistreur: homeassistant.config_entries Source: config_entries.py:933 S'est produit pour la première fois: 08:46:44 (12 occurrences) Dernier enregistrement: 08:46:44

Error migrating entry SW10tl for tuya_local Error migrating entry SW2tl for tuya_local Error migrating entry SW8tl for tuya_local Error migrating entry SW13tl for tuya_local Error migrating entry SW6tl for tuya_local Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 933, in async_migrate result = await component.async_migrate_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/tuya_local/init.py", line 649, in async_migrate_entry await async_migrate_entries(hass, entry.entry_id, update_unique_id13_6) File "/usr/src/homeassistant/homeassistant/helpers/entity_registry.py", line 1630, in async_migrate_entries ent_reg.async_update_entity(entry.entity_id, **updates) File "/usr/src/homeassistant/homeassistant/helpers/entity_registry.py", line 1173, in async_update_entity return self._async_update_entity( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_registry.py", line 1112, in _async_update_entity raise ValueError( ValueError: Unique id 'None-select_initial_state' is already in use by 'select.sw3tl_chaudiere_power_on_state'

To Reproduce Steps to reproduce the behavior including the device the issue was observed with: update 2.8.0 to 2 .9.1

Expected behavior A clear and concise description of what you expected to happen.

Additional context Home Assistant latest on prmox virtual environment

If the bug involves a device, then please include device diagnostics from Settings / Devices & Services / Tuya Local (your device) / "1 device"

Please check if there are messages from Tuya Local in the Home Assistant log (Settings / System / Logs), and include those too.

I revert to 2.8.0 all is working

Patbonamy commented 1 month ago

Duplicated unique_id