home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.58k stars 29.91k forks source link

TPLink Tapo Camera Integration Error #112894

Closed dominikhoebert closed 6 months ago

dominikhoebert commented 6 months ago

The problem

updated to 2024.3.0 and the tplink tapo camera integration shows an configuration error tried: restarting, reloading, removing and adding again.

What version of Home Assistant Core has the issue?

core-2024.3.0

What was the last working version of Home Assistant Core?

core-2024.2.5

What type of installation are you running?

Home Assistant OS

Integration causing the issue

tplink

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tplink_tapo

Diagnostics information

home-assistant_tapo_control_2024-03-10T13-20-12.701Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.config_entries
Quelle: config_entries.py:504
Erstmals aufgetreten: 11:09:52 (3 Vorkommnisse)
Zuletzt protokolliert: 13:32:03

Error setting up entry 192.168.1.64 for tapo_control
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 504, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/tapo_control/__init__.py", line 318, in async_setup_entry
    entry.unique_id = DOMAIN + host
    ^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 383, in __setattr__
    raise AttributeError(
AttributeError: unique_id cannot be changed directly, use async_update_entry instead

Additional information

No response

home-assistant[bot] commented 6 months ago

tplink_tapo documentation tplink_tapo source

JurajNyiri commented 6 months ago

This is a custom integration, not core integration so this is wrong place for the issue. Also it has been fixed long before 2023.3, update.

This needs to be closed.

BrianYZ commented 6 months ago

Same error occured as well. Two of my C200 cameras show failure of configuration. Exact same log as @dominikhoebert 's

BrianYZ commented 6 months ago

Solution found: update the integration to the latest version in HACS

gjohansson-ST commented 6 months ago

Closing this as it's custom component (and issue has also been solved)