mirror of
https://github.com/esphome/esphome.git
synced 2024-11-14 02:58:11 +01:00
Correctly throw invalid for "local" idf components
This commit is contained in:
parent
8fbb4e27d1
commit
df6ac61148
1 changed files with 19 additions and 9 deletions
|
@ -369,6 +369,13 @@ ARDUINO_FRAMEWORK_SCHEMA = cv.All(
|
|||
_arduino_check_versions,
|
||||
)
|
||||
|
||||
|
||||
def _check_component_type(config):
|
||||
if config[CONF_SOURCE][CONF_TYPE] == TYPE_LOCAL:
|
||||
raise cv.Invalid("Local components are not implemented yet.")
|
||||
return config
|
||||
|
||||
|
||||
CONF_SDKCONFIG_OPTIONS = "sdkconfig_options"
|
||||
ESP_IDF_FRAMEWORK_SCHEMA = cv.All(
|
||||
cv.Schema(
|
||||
|
@ -385,6 +392,7 @@ ESP_IDF_FRAMEWORK_SCHEMA = cv.All(
|
|||
}
|
||||
),
|
||||
cv.Optional(CONF_COMPONENTS, default=[]): cv.ensure_list(
|
||||
cv.All(
|
||||
cv.Schema(
|
||||
{
|
||||
cv.Required(CONF_NAME): cv.string_strict,
|
||||
|
@ -394,6 +402,8 @@ ESP_IDF_FRAMEWORK_SCHEMA = cv.All(
|
|||
cv.string, cv.source_refresh
|
||||
),
|
||||
}
|
||||
),
|
||||
_check_component_type,
|
||||
)
|
||||
),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue