mirror of
https://github.com/jdillenburg/esphome.git
synced 2026-02-18 15:15:55 -07:00
Rearranging directories to make them work with github URLs
This commit is contained in:
17
components/tfmini/__init__.py
Normal file
17
components/tfmini/__init__.py
Normal 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)
|
||||
Reference in New Issue
Block a user