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

remove redundant second await in ast_await #688

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

dmamelin
Copy link
Contributor

Fixes #643, #673

Code to reproduce:

async def test3():
    return "test3"

@time_trigger("startup")
async def test1():
    await test3()

TypeError: object str can't be used in 'await' expression

@craigbarratt craigbarratt merged commit 9465f98 into custom-components:master Jan 21, 2025
6 checks passed
craigbarratt added a commit that referenced this pull request Jan 22, 2025
correctly handle async function declarations and creating coros
when you call them without await.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

async await issue depending on script environment
2 participants