Rearranging directories to make them work with github URLs

This commit is contained in:
John Dillenburg
2025-03-01 14:24:56 -06:00
parent 177179d8a4
commit 398094cbed
7 changed files with 1 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
import esphome.codegen as cg
import esphome.config_validation as cv
from esphome.const import CONF_ID
DEPENDENCIES = ['uart']
AUTO_LOAD = ['sensor']
tfmini_ns = cg.esphome_ns.namespace('tfmini')
TFMiniComponent = tfmini_ns.class_('TFMiniComponent', cg.Component)
CONFIG_SCHEMA = cv.Schema({
cv.GenerateID(): cv.declare_id(TFMiniComponent)
}).extend(cv.COMPONENT_SCHEMA)
async def to_code(config):
var = cg.new_Pvariable(config[CONF_ID])
await cg.register_component(var, config)