diff --git a/esphome/storage_json.py b/esphome/storage_json.py index d561de4ce6..a941fca0af 100644 --- a/esphome/storage_json.py +++ b/esphome/storage_json.py @@ -99,7 +99,7 @@ class StorageJSON: def from_esphome_core( esph, old ): # type: (CoreType, Optional[StorageJSON]) -> StorageJSON - hardware = esph.target_platform + hardware = esph.target_platform.upper() if esph.is_esp32: from esphome.components import esp32