From 4cdeb3f5470ac552dcc0b00fc1aea1a6dd4922dc Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 21 Sep 2025 10:40:26 -0600 Subject: [PATCH] sha256 for host --- esphome/components/sha256/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: