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 migrating entry #284

Open
henne49 opened this issue Oct 13, 2024 · 1 comment
Open

Error migrating entry #284

henne49 opened this issue Oct 13, 2024 · 1 comment
Assignees
Labels
bug Something isn't working todo issue ready to implement

Comments

@henne49
Copy link

henne49 commented Oct 13, 2024

Hi,

I used the bouni luxtronik integration first and then switched to yours now. when I'm trying to migrate from below version, the migration fails and I have no idea how to fix. If I remove the integration and re-add , it works. But then all Dashboards and automations are broken.

Thank you very much for your work here, really appreciated!

Installed Version 2023.9.10
New Version 2024.9.30

below is the error:
Error migrating entry "removed" for luxtronik2
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/luxtronik2/init.py", line 112, in async_migrate_entry
config_entry.version = 3
^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 443, in setattr
raise AttributeError(
AttributeError: version cannot be changed directly, use async_update_entry instead

2024-10-13 14:59:21.448 INFO (MainThread) [homeassistant.setup] Setting up luxtronik2
2024-10-13 14:59:21.449 INFO (MainThread) [homeassistant.setup] Setup of domain luxtronik2 took 0.00 seconds
2024-10-13 14:59:21.449 DEBUG (MainThread) [custom_components.luxtronik2] Migrating from version 2
2024-10-13 14:59:21.451 INFO (MainThread) [custom_components.luxtronik2] Connected to Luxtronik heatpump X.X.X.X:8889 with timeout 60.0s
2024-10-13 14:59:21.455 DEBUG (MainThread) [custom_components.luxtronik2] Command 3003
2024-10-13 14:59:21.456 DEBUG (MainThread) [custom_components.luxtronik2] Length 1141
2024-10-13 14:59:21.459 DEBUG (MainThread) [custom_components.luxtronik2] Read 1141 parameters
2024-10-13 14:59:21.461 DEBUG (MainThread) [custom_components.luxtronik2] Command 3004
2024-10-13 14:59:21.504 DEBUG (MainThread) [custom_components.luxtronik2] Stat 0
2024-10-13 14:59:21.504 DEBUG (MainThread) [custom_components.luxtronik2] Length 263
2024-10-13 14:59:21.505 DEBUG (MainThread) [custom_components.luxtronik2] Read 263 calculations
2024-10-13 14:59:21.507 DEBUG (MainThread) [custom_components.luxtronik2] Command 3005
2024-10-13 14:59:21.556 DEBUG (MainThread) [custom_components.luxtronik2] Length 365
2024-10-13 14:59:21.557 DEBUG (MainThread) [custom_components.luxtronik2] Read 365 visibilities
2024-10-13 14:59:21.559 ERROR (MainThread) [homeassistant.config_entries] Error migrating entry "removed" for luxtronik2
File "/config/custom_components/luxtronik2/init.py", line 112, in async_migrate_entry

@henne49 henne49 changed the title Error migrating entry Novelan LD7 for luxtronik2 Error migrating entry Oct 13, 2024
@BenPru BenPru added bug Something isn't working todo issue ready to implement labels Nov 15, 2024
@BenPru BenPru self-assigned this Nov 15, 2024
@BenPru
Copy link
Owner

BenPru commented Nov 15, 2024

@BenPru TODO: Change "config_entry.version = 3" to "async_update_entry"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working todo issue ready to implement
Projects
None yet
Development

No branches or pull requests

2 participants