I have Home Assistant OS installed in Proxmox, after the update the following problems appeared:
Invalid config
The following integrations and platforms could not be set up:
* [xiaomi_airfryer](https://github.com/tsunglung/XiaomiAirFryer) ([Show logs](https://myhassioserv.duckdns.org/config/logs?filter=xiaomi_airfryer))
* [roborock](https://www.home-assistant.io/integrations/roborock) ([Show logs](https://myhassioserv.duckdns.org/config/logs?filter=roborock))
* [xiaomi_miio](https://www.home-assistant.io/integrations/xiaomi_miio) ([Show logs](https://myhassioserv.duckdns.org/config/logs?filter=xiaomi_miio))
* [xiaomi_miot](https://github.com/al-one/hass-xiaomi-miot) ([Show logs](https://myhassioserv.duckdns.org/config/logs?filter=xiaomi_miot))
Please check your config and [logs](https://myhassioserv.duckdns.org/config/logs).
Two custom integrations and two - Roborok and xiaomi_miio stopped working.
The problem is “Error occurred loading flow for integration xiaomi_miio: No module named ‘imp’”.
One of the integrations that resonates most with me is xiaomi_miio:
Logger: homeassistant.config_entries
Source: config_entries.py:2275
First occurred: 12:03:00 (3 occurrences)
Last logged: 12:12:28
Error occurred loading flow for integration xiaomi_miio: No module named 'imp'
and custom Air Fryer
Logger: homeassistant.setup
Source: setup.py:251
First occurred: 11:58:42 (4 occurrences)
Last logged: 11:58:57
Setup failed for custom integration 'xiaomi_airfryer': Unable to import component: No module named 'imp'
Setup failed for 'roborock': Unable to import component: No module named 'imp'
Setup failed for 'xiaomi_miio': Unable to import component: No module named 'imp'
Setup failed for custom integration 'xiaomi_miot': Unable to import component: No module named 'imp'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 251, in _async_setup_component
component = integration.get_component()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 827, in get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 994, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/config/custom_components/xiaomi_airfryer/__init__.py", line 29, in <module>
from miio import DeviceException
File "/usr/local/lib/python3.12/site-packages/miio/__init__.py", line 12, in <module>
from miio.device import Device, DeviceStatus # isort: skip
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/miio/device.py", line 13, in <module>
from .miioprotocol import MiIOProtocol
File "/usr/local/lib/python3.12/site-packages/miio/miioprotocol.py", line 13, in <module>
import construct
File "/usr/local/lib/python3.12/site-packages/construct/__init__.py", line 22, in <module>
from construct.core import *
File "/usr/local/lib/python3.12/site-packages/construct/core.py", line 3, in <module>
import struct, io, binascii, itertools, collections, pickle, sys, os, tempfile, hashlib, importlib, imp
ModuleNotFoundError: No module named 'imp'
I use Home Assistant OS and I do not have full access to Debian to solve the problem myself, I hope the developers will see my messages and this will help fix the problem.
* Core 2024.2.1
* Supervisor 2024.01.1
* Operating System 11.5
* Frontend 20240207.1