question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: Integration throws error on update when entity is disabled

See original GitHub issue

Describe the bug I get thousands of these log entries in a few hours.

To Reproduce I just added the camera through integrations page.

Expected behavior No error in log 😉

Log If applicable, add error logs.

Logger: custom_components.tapo_control
Source: helpers/entity.py:438
Integration: Tapo: Cameras Control (documentation, issues)
First occurred: 19:26:54 (1094 occurrences)
Last logged: 22:48:07
Unexpected error fetching Tapo resource status data:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 143, in async_refresh
    self.data = await self._async_update_data()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 131, in _async_update_data
    return await self.update_method()
  File "/config/custom_components/tapo_control/__init__.py", line 68, in async_update_data
    entity.async_schedule_update_ha_state(True)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 438, in async_schedule_update_ha_state
    assert self.hass is not None
AssertionError


Camera (please complete the following information):

  • Device Model: C200
  • FW: 1.0.14 Build 200720 Rel.38552n(4555)

Using stream component yes i think so

Camera works through onvif component OR different cameras work in general yes i think so

Camera has all attributes filled out properly in developer tools yes i think so

HASS Environment Home Assistant Container in Debian VM Version 0.116.2

Additional context Currently added the camera in a picture-glance card.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
JurajNyiricommented, Oct 16, 2020

Will be fixed in 2.2.

0reactions
JurajNyiricommented, Oct 15, 2020

Yeah that makes perfect sense, it explains why Entity wouldn’t have hass. Even though we actually try to create it. It would throw that error message on the entity you disabled. I will take a look and try to fix this when I have some time later 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Entity Framework add-migration throws error "Unable to ...
When executing EF's "add-migration" command, I am receiving the error: "Unable to update database to match the current model because there are pending ......
Read more >
Getting Error Popup when updating a notes in a Custom entity.
Hi guys ,. I have a custoum entity in that when I am updating a notes error is coming ? Pls let me...
Read more >
The type initializer for 'System.Data.Entity.Internal.AppConfig ...
Data.Entity.Internal.AppConfig' threw an exception." Detailed exception. An error occurred creating the configuration section handler for entityFramework: ...
Read more >
Troubleshoot dual-write issues in finance and operations apps
Required credentials to fix the issue: The same user that setup dual-write. You might receive the following error message when you try to ......
Read more >
HomeKit - Home Assistant
The HomeKit integration allows you to make your Home Assistant entities available ... entity to use as the doorbell sensor of the camera...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found