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

MIgration failed for two of 7 decives #1852

Open
krypton9208 opened this issue Nov 25, 2024 · 0 comments
Open

MIgration failed for two of 7 decives #1852

krypton9208 opened this issue Nov 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@krypton9208
Copy link

krypton9208 commented Nov 25, 2024

in version 2024.8.0 works perfect, but everyone new version not working with this two devices

Environment

  • Localtuya version:
  • Home Assistant Core version:
  • [] Does the device work using the Home Assistant Tuya Cloud component ?
  • [] Does the device work using the Tinytuya (https://github.com/jasonacox/tinytuya) command line tool ?
  • [] Was the device working with earlier versions of localtuya ? Which one?
  • [] Are you using the Tuya/SmartLife App in parallel ?

Steps to reproduce

  1. Update to version never then 2024.8.0
  2. 2 Devices stop working - error bellow

Provide Home Assistant traceback/logs

Rejestrator: homeassistant.config_entries
Źródło: config_entries.py:978
Pierwsze zdarzenie: 10:13:12 (2 zdarzenia)
Ostatnio zalogowany: 10:13:12

Error migrating entry Światło dach for tuya_local
Error migrating entry Światło za garażem for tuya_local
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 978, in async_migrate
    result = await component.async_migrate_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/tuya_local/__init__.py", line 537, 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 1636, in async_migrate_entries
    ent_reg.async_update_entity(entry.entity_id, **updates)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_registry.py", line 1179, in async_update_entity
    return self._async_update_entity(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity_registry.py", line 1118, in _async_update_entity
    raise ValueError(
ValueError: Unique id 'None-select_initial_state' is already in use by 'select.swiatlo_podjazd_power_on_state'
@krypton9208 krypton9208 added the bug Something isn't working label Nov 25, 2024
@krypton9208 krypton9208 changed the title MIgration failed for two of 7 decives from - MIgration failed for two of 7 decives Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant