1
0
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:
Jesse Hills
2021-11-01 09:33:04 +13:00
committed by GitHub
parent 2b04152482
commit d8b3af3815
6 changed files with 20 additions and 0 deletions

View File

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