(WIP) Add IDF component: XPowersLib
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import esphome.codegen as cg
|
||||
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 (
|
||||
CONF_BATTERY_LEVEL,
|
||||
CONF_BATTERY_VOLTAGE,
|
||||
@@ -62,6 +62,7 @@ def to_code(config):
|
||||
yield i2c.register_i2c_device(var, config)
|
||||
|
||||
cg.add_library("lewisxhe/XPowersLib", "0.2.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]))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user