mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-02 02:58:26 +02:00
Cleanup dashboard JS (#491)
* Cleanup dashboard JS * Add vscode * Save start_mark/end_mark * Updates * Updates * Remove need for cv.nameable It's a bit hacky but removes so much bloat from integrations * Add enum helper * Document APIs, and Improvements * Fixes * Fixes * Update PULL_REQUEST_TEMPLATE.md * Updates * Updates * Updates
This commit is contained in:
@@ -7,12 +7,12 @@ DEPENDENCIES = ['i2c']
|
||||
AUTO_LOAD = ['binary_sensor']
|
||||
|
||||
CONF_TTP229_ID = 'ttp229_id'
|
||||
ttp229_ns = cg.esphome_ns.namespace('ttp229')
|
||||
ttp229_lsf_ns = cg.esphome_ns.namespace('ttp229_lsf')
|
||||
|
||||
TTP229LSFComponent = ttp229_ns.class_('TTP229LSFComponent', cg.Component)
|
||||
TTP229LSFComponent = ttp229_lsf_ns.class_('TTP229LSFComponent', cg.Component, i2c.I2CDevice)
|
||||
|
||||
CONFIG_SCHEMA = cv.Schema({
|
||||
cv.GenerateID(): cv.declare_variable_id(TTP229LSFComponent),
|
||||
cv.GenerateID(): cv.declare_id(TTP229LSFComponent),
|
||||
}).extend(cv.COMPONENT_SCHEMA).extend(i2c.i2c_device_schema(0x57))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user