mirror of
https://github.com/esphome/esphome.git
synced 2024-11-16 10:45:48 +01:00
fix debug component
This commit is contained in:
parent
723f68e4cb
commit
db750fa53b
@ -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)
|
||||
|
@ -8,6 +8,7 @@
|
||||
#include <type_traits>
|
||||
#include <vector>
|
||||
#include <limits>
|
||||
#include <array>
|
||||
|
||||
#include "esphome/core/optional.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user