Skip to content

[Bug] <short description of issue> won't load integration #752

@jscherry

Description

@jscherry

Describe the bug

My home assistant crashed. After restoring a backup wyze integration quit working so I removed it, rebooted home assistant and tried reinstalling. Now it will go through the setup with the api etc but then just says integration will not load. Below are the log errors. I have even deleted the api and creating a new one?

Logger: homeassistant.config_entries
Source: config_entries.py:761
First occurred: 8:53:44 PM (1 occurrence)
Last logged: 8:53:44 PM

Error setting up entry for wyzeapi
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 761, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/wyzeapi/init.py", line 145, in async_setup_entry
await hass.config_entries.async_forward_entry_setups(config_entry, PLATFORMS)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2589, in async_forward_entry_setups
await integration.async_get_platforms(platforms)
File "/usr/src/homeassistant/homeassistant/loader.py", line 1127, in async_get_platforms
if platform := self._get_platform_cached_or_raise(platform_name):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1218, in _get_platform_cached_or_raise
raise ModuleNotFoundError(
...<2 lines>...
)
ModuleNotFoundError: Platform wyzeapi.sensor not found

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

System configuration
System:
HA Version:
WyzeApi Version:

home-assistant.log

<PUT YOUR LOG HERE>

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions