Skip to content

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