mirror of
https://github.com/esphome/esphome.git
synced 2024-11-30 10:44:13 +01:00
[kp18058] added code owner info
This commit is contained in:
parent
a92a2e0378
commit
e8f3018a2e
2 changed files with 9 additions and 10 deletions
|
@ -1,11 +1,9 @@
|
|||
from esphome import pins
|
||||
import esphome.codegen as cg
|
||||
import esphome.config_validation as cv
|
||||
from esphome import pins
|
||||
from esphome.const import (
|
||||
CONF_CLOCK_PIN,
|
||||
CONF_DATA_PIN,
|
||||
CONF_ID,
|
||||
)
|
||||
from esphome.const import CONF_CLOCK_PIN, CONF_DATA_PIN, CONF_ID
|
||||
|
||||
CODEOWNERS = ["@NewoPL"]
|
||||
|
||||
MULTI_CONF = True
|
||||
|
||||
|
@ -35,4 +33,4 @@ async def to_code(config):
|
|||
|
||||
data = await cg.gpio_pin_expression(config[CONF_DATA_PIN])
|
||||
clock = await cg.gpio_pin_expression(config[CONF_CLOCK_PIN])
|
||||
cg.add(var.set_i2c_pins(data,clock))
|
||||
cg.add(var.set_i2c_pins(data, clock))
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import esphome.codegen as cg
|
||||
import esphome.config_validation as cv
|
||||
from esphome.components import output
|
||||
from esphome.const import CONF_ID, CONF_CHANNEL
|
||||
import esphome.config_validation as cv
|
||||
from esphome.const import CONF_CHANNEL, CONF_ID
|
||||
|
||||
from . import KP18058
|
||||
|
||||
KP18058_ns = cg.esphome_ns.namespace("kp18058")
|
||||
|
@ -12,8 +13,8 @@ CONF_KP18058_ID = "kp18058_id"
|
|||
# Storage for outputs, to be validated at the end
|
||||
_output_registry = {}
|
||||
|
||||
def validate_unique_channels(config):
|
||||
|
||||
def validate_unique_channels(config):
|
||||
kp18058_id = str(config[CONF_KP18058_ID])
|
||||
channel = config[CONF_CHANNEL]
|
||||
|
||||
|
|
Loading…
Reference in a new issue