1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 06:33:51 +00:00

cover other case

This commit is contained in:
J. Nick Koston
2025-08-14 15:59:36 -05:00
parent 7e7bfb00aa
commit da73cb06cc
2 changed files with 84 additions and 3 deletions

View File

@@ -103,7 +103,7 @@ def storage_should_update_cmake_cache(old: StorageJSON, new: StorageJSON) -> boo
return False
def update_storage_json():
def update_storage_json() -> None:
path = storage_path()
old = StorageJSON.load(path)
new = StorageJSON.from_esphome_core(CORE, old)
@@ -111,7 +111,7 @@ def update_storage_json():
return
if storage_should_clean(old, new):
if old.loaded_integrations - new.loaded_integrations:
if old is not None and old.loaded_integrations - new.loaded_integrations:
removed = old.loaded_integrations - new.loaded_integrations
_LOGGER.info(
"Components removed (%s), cleaning build files...",