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

Fix Executor bug that happens for Python 3.8 installations #685

Merged
merged 2 commits into from
Dec 20, 2021
Merged

Conversation

iMicknl
Copy link
Owner

@iMicknl iMicknl commented Dec 19, 2021

Fixes #684
(can be merged after change is validated)

@github-actions github-actions bot added the bug Something isn't working label Dec 19, 2021
import logging
from typing import Any, Optional
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional does not exist? I don't get it

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional wasn't part of my original change, the main issue is that list is supported in Python 3.9, where it is called List in Python 3.8.

After importing from future, it seems that importing Optional is not required anymore.

@iMicknl iMicknl merged commit 3d6d743 into master Dec 20, 2021
@iMicknl iMicknl deleted the fix/684 branch December 20, 2021 23:16
egguy pushed a commit to egguy/ha-tahoma that referenced this pull request Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error setting up entry [email protected] for button
2 participants