Prevent network config on rpipico board (#5832)

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
Carlos Ortega 2024-02-19 01:29:41 +00:00 committed by GitHub
parent e1345ae7e3
commit 342fb72b6a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,10 +51,12 @@ BASE_CONFIG_FRIENDLY = """esphome:
friendly_name: {friendly_name}
"""
LOGGER_API_CONFIG = """
LOGGER_CONFIG = """
# Enable logging
logger:
"""
API_CONFIG = """
# Enable Home Assistant API
api:
"""
@ -136,7 +138,12 @@ def wizard_file(**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
if "password" in kwargs: