fix debug component

This commit is contained in:
Tomasz Duda 2024-05-11 08:48:18 +02:00
parent 723f68e4cb
commit db750fa53b
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,6 @@
import esphome.codegen as cg
import esphome.config_validation as cv
from esphome.core import CORE
from esphome.const import (
CONF_BLOCK,
CONF_DEVICE,
@ -45,6 +46,7 @@ CONFIG_SCHEMA = cv.All(
async def to_code(config):
if CORE.using_zephyr:
zephyr_add_prj_conf("HWINFO", True)
var = cg.new_Pvariable(config[CONF_ID])
await cg.register_component(var, config)

View File

@ -8,6 +8,7 @@
#include <type_traits>
#include <vector>
#include <limits>
#include <array>
#include "esphome/core/optional.h"