mirror of
https://github.com/esphome/esphome.git
synced 2025-09-13 08:42:18 +01:00
Expose webserver_port to the native API (#2640)
This commit is contained in:
@@ -54,6 +54,7 @@ async def to_code(config):
|
||||
|
||||
cg.add(paren.set_port(config[CONF_PORT]))
|
||||
cg.add_define("WEBSERVER_PORT", config[CONF_PORT])
|
||||
cg.add_define("USE_WEBSERVER")
|
||||
cg.add(var.set_css_url(config[CONF_CSS_URL]))
|
||||
cg.add(var.set_js_url(config[CONF_JS_URL]))
|
||||
if CONF_AUTH in config:
|
||||
|
Reference in New Issue
Block a user