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:
parent
40190a2f1f
commit
d6d2ded546
1 changed files with 1 additions and 0 deletions
|
@ -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": [
|
||||
|
|
Loading…
Add table
Reference in a new issue