mirror of
https://github.com/esphome/esphome.git
synced 2025-09-21 20:52:20 +01:00
sha256 for host
This commit is contained in:
@@ -2,6 +2,7 @@ import esphome.codegen as cg
|
|||||||
import esphome.config_validation as cv
|
import esphome.config_validation as cv
|
||||||
from esphome.core import CORE
|
from esphome.core import CORE
|
||||||
from esphome.helpers import IS_MACOS
|
from esphome.helpers import IS_MACOS
|
||||||
|
from esphome.types import ConfigType
|
||||||
|
|
||||||
CODEOWNERS = ["@esphome/core"]
|
CODEOWNERS = ["@esphome/core"]
|
||||||
|
|
||||||
@@ -10,7 +11,7 @@ sha256_ns = cg.esphome_ns.namespace("sha256")
|
|||||||
CONFIG_SCHEMA = cv.Schema({})
|
CONFIG_SCHEMA = cv.Schema({})
|
||||||
|
|
||||||
|
|
||||||
async def to_code(config):
|
async def to_code(config: ConfigType) -> None:
|
||||||
# Add OpenSSL library for host platform
|
# Add OpenSSL library for host platform
|
||||||
if CORE.is_host:
|
if CORE.is_host:
|
||||||
if IS_MACOS:
|
if IS_MACOS:
|
||||||
|
Reference in New Issue
Block a user