This commit is contained in:
J. Nick Koston 2025-06-29 15:43:41 -05:00
parent d73fa370f3
commit 3467329a7c
No known key found for this signature in database

View File

@ -261,7 +261,7 @@ async def to_code(config):
cg.add(var.set_css_url(config[CONF_CSS_URL]))
cg.add(var.set_js_url(config[CONF_JS_URL]))
cg.add(var.set_allow_ota(config[CONF_OTA]))
if config[CONF_OTA]:
if config[CONF_OTA] and "ota" in CORE.config:
cg.add_define("USE_WEBSERVER_OTA")
cg.add(var.set_expose_log(config[CONF_LOG]))
if config[CONF_ENABLE_PRIVATE_NETWORK_ACCESS]: