You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon attempting to run tests in a Home Assistant environment using Python 3.11, an ImportError is encountered. The error suggests that the override decorator, which should be available in Python 3.11, is not being imported successfully.
What version of Home Assistant Core has the issue?
core-2024.3.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Core
Integration causing the issue
No response
Link to integration documentation on our website
No response
Diagnostics information
ImportError while loading conftest 'C:\projectpy\core\tests\conftest.py'.
...conftest.py:37: in
from . import patch_time # noqa: F401, isort:skip
...patch_time.py:8: in
from homeassistant import runner, util
...homeassistant\runner.py:18: in
from . import bootstrap
...homeassistant\bootstrap.py:40: in
from .components import (
...homeassistant\components\config_init_.py:12: in
from . import (
...homeassistant\components\config\automation.py:8: in
from homeassistant.components.automation.config import (
...homeassistant\components\automation_init_.py:58: in
from homeassistant.helpers import condition
...homeassistant\helpers\condition.py:18: in
from homeassistant.components.sensor import SensorDeviceClass
...homeassistant\components\sensor_init_.py:14: in
from typing import Any, Final, Self, cast, final, override
E ImportError: cannot import name 'override' from 'typing' (C:\Users\22866\AppData\Local\Programs\Python\Python311\Lib\typing.py)
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered:
The problem
Upon attempting to run tests in a Home Assistant environment using Python 3.11, an ImportError is encountered. The error suggests that the override decorator, which should be available in Python 3.11, is not being imported successfully.
What version of Home Assistant Core has the issue?
core-2024.3.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Core
Integration causing the issue
No response
Link to integration documentation on our website
No response
Diagnostics information
ImportError while loading conftest 'C:\projectpy\core\tests\conftest.py'.
...conftest.py:37: in
from . import patch_time # noqa: F401, isort:skip
...patch_time.py:8: in
from homeassistant import runner, util
...homeassistant\runner.py:18: in
from . import bootstrap
...homeassistant\bootstrap.py:40: in
from .components import (
...homeassistant\components\config_init_.py:12: in
from . import (
...homeassistant\components\config\automation.py:8: in
from homeassistant.components.automation.config import (
...homeassistant\components\automation_init_.py:58: in
from homeassistant.helpers import condition
...homeassistant\helpers\condition.py:18: in
from homeassistant.components.sensor import SensorDeviceClass
...homeassistant\components\sensor_init_.py:14: in
from typing import Any, Final, Self, cast, final, override
E ImportError: cannot import name 'override' from 'typing' (C:\Users\22866\AppData\Local\Programs\Python\Python311\Lib\typing.py)
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: