JurajNyiri / HomeAssistant-Tapo-Control

Control for Tapo cameras as a Home Assistant component
Apache License 2.0
953 stars 80 forks source link

In HA 2024.3.* integration is stopped working. #528

Closed alexanderznamensky closed 4 months ago

alexanderznamensky commented 4 months ago

Description

In beta HA 2024.3.0b1 integration is not working. Rolling back to 2024.2.5 returns the integration to a working state.

Reproduction Steps

Instalation of HA 2024.3.0b1

Expected behavior

working integarion in 2024.3.*

If applicable, add error logs.

Регистратор: homeassistant.config_entries Источник: config_entries.py:504 Первое сообщение: 09:51:11 (5 сообщений) Последнее сообщение: 10:05:49

Error setting up entry Tapo C210 for tapo_control Error setting up entry Tapo C310 for tapo_control Error setting up entry Tapo C110 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

Device Firmware

Tapo C110, Tapo C210, Tapo C310

Integration Version

5.4.13

Using stream component

No

Does camera work via official integrations?

N/A

Camera has all attributes filled out in developer tools

Yes

HASS Environment

Docker

Search for similar issues

No

Additional information

Core 2024.2.5 Supervisor 2024.02.1 Operating System Debian GNU/Linux 12 (bookworm) Docker 24.0.7 UI 20240207.1

gateriderz commented 4 months ago

Similar issue after upgrading:

HA Core: 2024.03.0b1 Integration: 5.4.14 Cameras: C100

Thanks

JurajNyiri commented 4 months ago

Looking into this now.

JurajNyiri commented 4 months ago

Fixed in 5.4.15.

Tested for 2024.4.0.dev20240229 and 2024.3.0b1.

alexanderznamensky commented 4 months ago

awesome! many thanks!