mirror of
https://github.com/esphome/esphome.git
synced 2025-02-12 07:58:17 +00:00
[core] Clean build if the loaded integrations changed (#7344)
This commit is contained in:
parent
3c65cabe1d
commit
43f8f2fd2e
@ -106,6 +106,8 @@ def storage_should_clean(old: StorageJSON, new: StorageJSON) -> bool:
|
|||||||
return True
|
return True
|
||||||
if old.build_path != new.build_path:
|
if old.build_path != new.build_path:
|
||||||
return True
|
return True
|
||||||
|
if old.loaded_integrations != new.loaded_integrations:
|
||||||
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
@ -117,7 +119,9 @@ def update_storage_json():
|
|||||||
return
|
return
|
||||||
|
|
||||||
if storage_should_clean(old, new):
|
if storage_should_clean(old, new):
|
||||||
_LOGGER.info("Core config or version changed, cleaning build files...")
|
_LOGGER.info(
|
||||||
|
"Core config, version or integrations changed, cleaning build files..."
|
||||||
|
)
|
||||||
clean_build()
|
clean_build()
|
||||||
|
|
||||||
new.save(path)
|
new.save(path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user