mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 21:44:55 +01:00
Prevent network config on rpipico board (#5832)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
e1345ae7e3
commit
342fb72b6a
1 changed files with 9 additions and 2 deletions
|
@ -51,10 +51,12 @@ BASE_CONFIG_FRIENDLY = """esphome:
|
||||||
friendly_name: {friendly_name}
|
friendly_name: {friendly_name}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
LOGGER_API_CONFIG = """
|
LOGGER_CONFIG = """
|
||||||
# Enable logging
|
# Enable logging
|
||||||
logger:
|
logger:
|
||||||
|
"""
|
||||||
|
|
||||||
|
API_CONFIG = """
|
||||||
# Enable Home Assistant API
|
# Enable Home Assistant API
|
||||||
api:
|
api:
|
||||||
"""
|
"""
|
||||||
|
@ -136,7 +138,12 @@ def wizard_file(**kwargs):
|
||||||
|
|
||||||
config += HARDWARE_BASE_CONFIGS[kwargs["platform"]].format(**kwargs)
|
config += HARDWARE_BASE_CONFIGS[kwargs["platform"]].format(**kwargs)
|
||||||
|
|
||||||
config += LOGGER_API_CONFIG
|
config += LOGGER_CONFIG
|
||||||
|
|
||||||
|
if kwargs["board"] == "rpipico":
|
||||||
|
return config
|
||||||
|
|
||||||
|
config += API_CONFIG
|
||||||
|
|
||||||
# Configure API
|
# Configure API
|
||||||
if "password" in kwargs:
|
if "password" in kwargs:
|
||||||
|
|
Loading…
Reference in a new issue