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
This commit is contained in:
J. Nick Koston 2024-02-26 18:20:24 -10:00 committed by GitHub
parent 40190a2f1f
commit d6d2ded546
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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": [