1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-03 11:52:20 +01:00

[config] Clean build on ESP-IDF when component/platform combos change (#9028)

This commit is contained in:
Clyde Stubbs
2025-06-09 08:39:02 +10:00
committed by GitHub
parent 9cc2a04d54
commit 4d044d4ac9
4 changed files with 20 additions and 6 deletions

View File

@@ -107,7 +107,10 @@ def storage_should_clean(old: StorageJSON, new: StorageJSON) -> bool:
return True
if old.build_path != new.build_path:
return True
if old.loaded_integrations != new.loaded_integrations:
if (
old.loaded_integrations != new.loaded_integrations
or old.loaded_platforms != new.loaded_platforms
):
if new.core_platform == PLATFORM_ESP32:
from esphome.components.esp32 import FRAMEWORK_ESP_IDF