Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.11 #142

Closed
bruxy70 opened this issue Mar 1, 2023 · 2 comments · Fixed by #143
Closed

Python 3.11 #142

bruxy70 opened this issue Mar 1, 2023 · 2 comments · Fixed by #143

Comments

@bruxy70
Copy link

bruxy70 commented Mar 1, 2023

Home Assistant 2023.2.0 supports Python 3.11. So I tried to test my custom components in Python 3.11.2.
Created new venv, installed homeassistant 2023.3.0b7, pytest-homeassistant-custom-component 0.13.3.
Running pytest throws an error:

File "/Users/vasek/GitHub/Holidays/venv11/lib/python3.11/site-packages/pytest_homeassistant_custom_component/plugins.py", line 116, in <module>
from .asyncio_legacy import legacy_coroutine
ModuleNotFoundError: No module named 'pytest_homeassistant_custom_component.asyncio_legacy'

I have verified that pytest_homeassistant_custom_component really does not contain asyncio_legacy.

@MatthewFlamm
Copy link
Owner

I have 3/4 of a mind to just wait until this resolves itself, but there also should be no problem to fix it temporarily in the meantime.

home-assistant/core#88560

@MatthewFlamm
Copy link
Owner

This package should now support Python 3.11 when the next release is made (next homeassistant release).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants