petretiandrea / home-assistant-tapo-p100

A custom integration to control Tapo devices from home assistant.
MIT License
828 stars 103 forks source link

Tapo Integration doesn't work anymore #812

Open daufinsyd opened 1 day ago

daufinsyd commented 1 day ago

Version of the integration

3.1.4 (from HACS)

Configuration

P100 Firmware: 1.2.5 Build 240411 Rel.143808 Hardware: 2.0

Add your logs here.

Describe the bug

Hello

Tapo Integration fail with:

Migration error:
Check the logs

Debug log


Logger: homeassistant.config_entries
Source: config_entries.py:978
First occurred: 12:04:08 (1 occurrences)
Last logged: 12:04:08

Error migrating entry Prise connectée Grange for tapo
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/tapo/__init__.py", line 73, in async_migrate_entry
    await migrate_entry_to_v8(hass, config_entry)
  File "/config/custom_components/tapo/migrations.py", line 20, in migrate_entry_to_v8
    config_entry.version = 8
    ^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 463, in __setattr__
    raise AttributeError(
AttributeError: version cannot be changed directly, use async_update_entry instead

Edit: HomeAssistant-Tapo-Control has a similar issue: https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/issues/528

Knutowskie commented 1 day ago

try the tp-link integration that is default. it seems to show all my plugs (HS100 HS110 P100 P110) and is able to read data.

daufinsyd commented 1 day ago

indeed it works flawlessly ! I didn't know it became an official integration

Thank you !