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

Critical error when initializing H200 #482

Closed
Exelord opened this issue Dec 7, 2023 · 1 comment
Closed

Critical error when initializing H200 #482

Exelord opened this issue Dec 7, 2023 · 1 comment

Comments

@Exelord
Copy link

Exelord commented Dec 7, 2023

Description

With new Home Assistant update 2023.12 the integrations stopped working for H200 and C420 cameras.

When re-adding the hub, I am getting following issue:

2023-12-07 11:09:39.053 ERROR (MainThread) [homeassistant.config_entries] Error calling entry remove callback 192.168.1.41 for tapo_control
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 597, in async_remove
    await component.async_remove_entry(hass, self)
  File "/config/custom_components/tapo_control/__init__.py", line 277, in async_remove_entry
    coldDirPath = getColdDirPathForEntry(hass, entry_id)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/tapo_control/utils.py", line 116, in getColdDirPathForEntry
    if hass.data[DOMAIN][entry_id]["mediaSyncColdDir"] is False:
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
KeyError: 'mediaSyncColdDir'

Reproduction Steps

  1. Add new integration
  2. After confirming IP address the integration hangs.

Expected behavior

I does not fail

If applicable, add error logs.

No response

Device Firmware

1.2.23

Integration Version

5.4.12

Using stream component

No

Does camera work via official integrations?

Yes

Camera has all attributes filled out in developer tools

Yes

HASS Environment

HASOS

Search for similar issues

Yes

Additional information

No response

@Exelord
Copy link
Author

Exelord commented Dec 20, 2023

Things are working again. Seams like HA updates fixed that.

@Exelord Exelord closed this as completed Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant