mirror of
https://github.com/esphome/esphome.git
synced 2025-09-15 09:42:19 +01:00
Remove idf components before checking if any in config (#4506)
* Remove idf components before checking if any in config * Fix bug with no refresh time specified
This commit is contained in:
@@ -523,11 +523,11 @@ def copy_files():
|
||||
__version__,
|
||||
)
|
||||
|
||||
import shutil
|
||||
|
||||
shutil.rmtree(CORE.relative_build_path("components"), ignore_errors=True)
|
||||
|
||||
if CORE.data[KEY_ESP32][KEY_COMPONENTS]:
|
||||
import shutil
|
||||
|
||||
shutil.rmtree(CORE.relative_build_path("components"), ignore_errors=True)
|
||||
|
||||
components: dict = CORE.data[KEY_ESP32][KEY_COMPONENTS]
|
||||
|
||||
for name, component in components.items():
|
||||
|
Reference in New Issue
Block a user