mirror of
https://github.com/esphome/esphome.git
synced 2025-09-29 16:42:19 +01:00
fix auto load
This commit is contained in:
@@ -15,7 +15,14 @@ from esphome.const import (
|
||||
from esphome.core import CORE, coroutine_with_priority
|
||||
from esphome.coroutine import CoroPriority
|
||||
|
||||
AUTO_LOAD = ["web_server_base", "ota.web_server"]
|
||||
|
||||
def AUTO_LOAD():
|
||||
auto_load = ["web_server_base", "ota.web_server"]
|
||||
if CORE.using_esp_idf:
|
||||
auto_load.append("socket")
|
||||
return auto_load
|
||||
|
||||
|
||||
DEPENDENCIES = ["wifi"]
|
||||
CODEOWNERS = ["@esphome/core"]
|
||||
|
||||
|
Reference in New Issue
Block a user