From d6d2ded546a5e0493d7b6209ff2d16f5b521e8a9 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 26 Feb 2024 18:20:24 -1000 Subject: [PATCH] Import dhcp in the executor to avoid blocking the event loop (#111589) Discovery integrations load a lot earlier when many modules are not yet loaded so they have a lot less overlapping deps dhcp uses scapy which is large to import. I hope one day to replace it with something more lightweight --- homeassistant/components/dhcp/manifest.json | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/dhcp/manifest.json b/homeassistant/components/dhcp/manifest.json index 142aab52cc8..d609e9ec7ae 100644 --- a/homeassistant/components/dhcp/manifest.json +++ b/homeassistant/components/dhcp/manifest.json @@ -3,6 +3,7 @@ "name": "DHCP Discovery", "codeowners": ["@bdraco"], "documentation": "https://www.home-assistant.io/integrations/dhcp", + "import_executor": true, "integration_type": "system", "iot_class": "local_push", "loggers": [