Store platform as uppercase (#3251)

This commit is contained in:
Jesse Hills 2022-02-22 13:54:23 +13:00 committed by GitHub
parent 9323b3a248
commit 68b3fd6b8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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