diff --git a/esphome/components/sha256/__init__.py b/esphome/components/sha256/__init__.py index 045cbbe37e..91d4929a4f 100644 --- a/esphome/components/sha256/__init__.py +++ b/esphome/components/sha256/__init__.py @@ -2,6 +2,7 @@ import esphome.codegen as cg import esphome.config_validation as cv from esphome.core import CORE from esphome.helpers import IS_MACOS +from esphome.types import ConfigType CODEOWNERS = ["@esphome/core"] @@ -10,7 +11,7 @@ sha256_ns = cg.esphome_ns.namespace("sha256") CONFIG_SCHEMA = cv.Schema({}) -async def to_code(config): +async def to_code(config: ConfigType) -> None: # Add OpenSSL library for host platform if CORE.is_host: if IS_MACOS: