Skip to content

Importing services does blocking I/O in the event loop #681

@bdraco

Description

@bdraco

What version of Spook are you using?

n/a

What version of Home Assistant are you using?

dev

The problem

module = importlib.import_module(f".{module_path}", __package__)

https://github.com/home-assistant/core/blob/3f545cb3d368a0ea046603e0120f42883187d02f/homeassistant/helpers/importlib.py#L27 could be used but there is no risk of something else loading the same code so loading it in the single default executor job is likely the simplest solution

Screenshot 2024-03-25 at 10 00 14 PM

Anything in the logs? Paste it here!

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions