Compare commits
2 Commits
main
...
esp-idf-wi
| Author | SHA1 | Date | |
|---|---|---|---|
| c10e9817b3 | |||
| 048d225e90 |
@@ -1,6 +1,6 @@
|
|||||||
import esphome.codegen as cg
|
import esphome.codegen as cg
|
||||||
import esphome.config_validation as cv
|
import esphome.config_validation as cv
|
||||||
from esphome.components import binary_sensor, i2c, sensor
|
from esphome.components import binary_sensor, i2c, sensor, esp32
|
||||||
from esphome.const import (
|
from esphome.const import (
|
||||||
CONF_BATTERY_LEVEL,
|
CONF_BATTERY_LEVEL,
|
||||||
CONF_BATTERY_VOLTAGE,
|
CONF_BATTERY_VOLTAGE,
|
||||||
@@ -61,7 +61,8 @@ def to_code(config):
|
|||||||
yield cg.register_component(var, config)
|
yield cg.register_component(var, config)
|
||||||
yield i2c.register_i2c_device(var, config)
|
yield i2c.register_i2c_device(var, config)
|
||||||
|
|
||||||
cg.add_library("lewisxhe/XPowersLib", "0.2.1")
|
cg.add_library("lewisxhe/XPowersLib", "0.3.1")
|
||||||
|
#esp32.add_idf_component(name="lewisxhe/XPowersLib", ref="v0.2.1", repo="https://github.com/lewisxhe/XPowersLib.git")
|
||||||
|
|
||||||
cg.add(var.set_model(config[CONF_MODEL]))
|
cg.add(var.set_model(config[CONF_MODEL]))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user