Update __init__.py
This commit is contained in:
@@ -2,6 +2,7 @@ import esphome.codegen as cg
|
||||
import esphome.config_validation as cv
|
||||
from esphome import pins
|
||||
from esphome.components import time as time_
|
||||
from esphome.components.esp32 import include_builtin_idf_component
|
||||
from esphome.const import CONF_ID, CONF_NUMBER, PLATFORM_ESP32
|
||||
|
||||
CODEOWNERS = ["@misterblack1"]
|
||||
@@ -64,6 +65,9 @@ CONFIG_SCHEMA = cv.Schema(
|
||||
|
||||
|
||||
async def to_code(config):
|
||||
# The display scan uses GPTimer, which ESPHome excludes by default.
|
||||
include_builtin_idf_component("esp_driver_gptimer")
|
||||
|
||||
var = cg.new_Pvariable(config[CONF_ID])
|
||||
await cg.register_component(var, config)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user