Skip to content

AttributeError: 'async_generator' object has no attribute 'config_entries' #160

Answered by masaccio
masaccio asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks both - adding asyncio_mode = "auto" to my pyproject.toml was what I needed. It also lets me remove the various @pytest.mark.asyncio lines. Reading through some Stackoverflow threads, fixtures with pytest and asyncio does need to be handled with care, but that asyncio_mode is the cleanest answer.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@MatthewFlamm
Comment options

@Shulyaka
Comment options

@masaccio
Comment options

Answer selected by MatthewFlamm
@MatthewFlamm
Comment options

@sdwilsh
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants