I recently updated all HA software. However, my miner integration stopped working, showing the following error.
I've already tried to update to recent version v.1.2.7rc2. I'm running on a raspberry Pi, with following versions:
`Logger: homeassistant.setup
Bron: setup.py:343
Eerst voorgekomen: 12:06:22 (1 gebeurtenis)
Laatst gelogd: 12:06:22
Setup failed for custom integration 'miner': Unable to import component: Exception importing custom_components.miner
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 1083, in _get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 201, in protected_loop_func
return func(*args, **kwargs)
File "/usr/local/lib/python3.14/importlib/__init__.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1398, in _gcd_import
File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 759, in exec_module
File "<frozen importlib._bootstrap>", line 491, in _call_with_frames_removed
File "/config/custom_components/miner/__init__.py", line 6, in <module>
import pyasic
File "/usr/local/lib/python3.14/site-packages/pyasic/__init__.py", line 20, in <module>
from pyasic.data import MinerData
File "/usr/local/lib/python3.14/site-packages/pyasic/data/__init__.py", line 35, in <module>
class MinerData(BaseModel):
...<475 lines>...
return " ".join([tags_str, field_str, timestamp])
File "/usr/local/lib/python3.14/site-packages/pydantic/_internal/_model_construction.py", line 255, in __new__
complete_model_class(
~~~~~~~~~~~~~~~~~~~~^
cls,
^^^^
...<3 lines>...
create_model_module=_create_model_module,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.14/site-packages/pydantic/_internal/_model_construction.py", line 648, in complete_model_class
schema = gen_schema.generate_schema(cls)
File "/usr/local/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py", line 729, in generate_schema
schema = self._generate_schema_inner(obj)
File "/usr/local/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py", line 1023, in _generate_schema_inner
return self._model_schema(obj)
~~~~~~~~~~~~~~~~~~^^^^^
File "/usr/local/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py", line 856, in _model_schema
{k: self._generate_md_field_schema(k, v, decorators) for k, v in fields.items()},
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py", line 1228, in _generate_md_field_schema
schema, metadata = self._common_field_schema(name, field_info, decorators)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py", line 1282, in _common_field_schema
schema = self._apply_annotations(
source_type,
annotations + validators_from_decorators,
)
File "/usr/local/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py", line 2227, in _apply_annotations
schema = get_inner_schema(source_type)
File "/usr/local/lib/python3.14/site-packages/pydantic/_internal/_schema_generation_shared.py", line 83, in __call__
schema = self._handler(source_type)
File "/usr/local/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py", line 2206, in inner_handler
schema = self._generate_schema_inner(obj)
File "/usr/local/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py", line 1028, in _generate_schema_inner
return self.match_type(obj)
~~~~~~~~~~~~~~~^^^^^
File "/usr/local/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py", line 1148, in match_type
return self._unknown_type_schema(obj)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
File "/usr/local/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py", line 659, in _unknown_type_schema
raise PydanticSchemaGenerationError(
...<7 lines>...
)
pydantic.errors.PydanticSchemaGenerationError: Unable to generate pydantic-core schema for <property object at 0x7f6e826020>. Set `arbitrary_types_allowed=True` in the model_config to ignore this error or implement `__get_pydantic_core_schema__` on your type to fully support it.
If you got this error by calling handler(<some type>) within `__get_pydantic_core_schema__` then you likely need to call `handler.generate_schema(<some type>)` since we do not call `__get_pydantic_core_schema__` on `<some type>` otherwise to avoid infinite recursion.
For further information visit https://errors.pydantic.dev/2.12/u/schema-for-unknown-type
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 1023, in async_get_component
comp = await self.hass.async_add_import_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
self._get_component, True
^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.14/concurrent/futures/thread.py", line 86, in run
result = ctx.run(self.task)
File "/usr/local/lib/python3.14/concurrent/futures/thread.py", line 73, in run
return fn(*args, **kwargs)
File "/usr/src/homeassistant/homeassistant/loader.py", line 1094, in _get_component
raise ImportError(f"Exception importing {self.pkg_path}") from err
ImportError: Exception importing custom_components.miner
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 1083, in _get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 201, in protected_loop_func
return func(*args, **kwargs)
File "/usr/local/lib/python3.14/importlib/__init__.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1398, in _gcd_import
File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 759, in exec_module
File "<frozen importlib._bootstrap>", line 491, in _call_with_frames_removed
File "/config/custom_components/miner/__init__.py", line 6, in <module>
import pyasic
File "/usr/local/lib/python3.14/site-packages/pyasic/__init__.py", line 20, in <module>
from pyasic.data import MinerData
File "/usr/local/lib/python3.14/site-packages/pyasic/data/__init__.py", line 35, in <module>
class MinerData(BaseModel):
...<475 lines>...
return " ".join([tags_str, field_str, timestamp])
File "/usr/local/lib/python3.14/site-packages/pydantic/_internal/_model_construction.py", line 255, in __new__
complete_model_class(
~~~~~~~~~~~~~~~~~~~~^
cls,
^^^^
...<3 lines>...
create_model_module=_create_model_module,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.14/site-packages/pydantic/_internal/_model_construction.py", line 648, in complete_model_class
schema = gen_schema.generate_schema(cls)
File "/usr/local/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py", line 729, in generate_schema
schema = self._generate_schema_inner(obj)
File "/usr/local/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py", line 1023, in _generate_schema_inner
return self._model_schema(obj)
~~~~~~~~~~~~~~~~~~^^^^^
File "/usr/local/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py", line 856, in _model_schema
{k: self._generate_md_field_schema(k, v, decorators) for k, v in fields.items()},
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py", line 1228, in _generate_md_field_schema
schema, metadata = self._common_field_schema(name, field_info, decorators)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py", line 1282, in _common_field_schema
schema = self._apply_annotations(
source_type,
annotations + validators_from_decorators,
)
File "/usr/local/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py", line 2227, in _apply_annotations
schema = get_inner_schema(source_type)
File "/usr/local/lib/python3.14/site-packages/pydantic/_internal/_schema_generation_shared.py", line 83, in __call__
schema = self._handler(source_type)
File "/usr/local/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py", line 2206, in inner_handler
schema = self._generate_schema_inner(obj)
File "/usr/local/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py", line 1028, in _generate_schema_inner
return self.match_type(obj)
~~~~~~~~~~~~~~~^^^^^
File "/usr/local/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py", line 1148, in match_type
return self._unknown_type_schema(obj)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
File "/usr/local/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py", line 659, in _unknown_type_schema
raise PydanticSchemaGenerationError(
...<7 lines>...
)
pydantic.errors.PydanticSchemaGenerationError: Unable to generate pydantic-core schema for <property object at 0x7f6e73bb00>. Set `arbitrary_types_allowed=True` in the model_config to ignore this error or implement `__get_pydantic_core_schema__` on your type to fully support it.
If you got this error by calling handler(<some type>) within `__get_pydantic_core_schema__` then you likely need to call `handler.generate_schema(<some type>)` since we do not call `__get_pydantic_core_schema__` on `<some type>` otherwise to avoid infinite recursion.
For further information visit https://errors.pydantic.dev/2.12/u/schema-for-unknown-type
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 343, in _async_setup_component
component = await integration.async_get_component()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1043, in async_get_component
self._component_future.result()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1035, in async_get_component
comp = self._get_component()
File "/usr/src/homeassistant/homeassistant/loader.py", line 1094, in _get_component
raise ImportError(f"Exception importing {self.pkg_path}") from err
ImportError: Exception importing custom_components.miner`
Hello,
I recently updated all HA software. However, my miner integration stopped working, showing the following error.
I've already tried to update to recent version v.1.2.7rc2. I'm running on a raspberry Pi, with following versions:
Core 2026.3.4
Supervisor 2026.03.2
Operating System 17.1
Frontend 20260312.1
What can i do to fix this?