[kp18058] added code owner info

This commit is contained in:
NewoPL 2024-10-30 21:33:24 +01:00
parent a92a2e0378
commit e8f3018a2e
2 changed files with 9 additions and 10 deletions

View file

@ -1,11 +1,9 @@
from esphome import pins
import esphome.codegen as cg import esphome.codegen as cg
import esphome.config_validation as cv 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, CODEOWNERS = ["@NewoPL"]
CONF_DATA_PIN,
CONF_ID,
)
MULTI_CONF = True MULTI_CONF = True
@ -35,4 +33,4 @@ async def to_code(config):
data = await cg.gpio_pin_expression(config[CONF_DATA_PIN]) data = await cg.gpio_pin_expression(config[CONF_DATA_PIN])
clock = await cg.gpio_pin_expression(config[CONF_CLOCK_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))

View file

@ -1,7 +1,8 @@
import esphome.codegen as cg import esphome.codegen as cg
import esphome.config_validation as cv
from esphome.components import output 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 from . import KP18058
KP18058_ns = cg.esphome_ns.namespace("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 # Storage for outputs, to be validated at the end
_output_registry = {} _output_registry = {}
def validate_unique_channels(config):
def validate_unique_channels(config):
kp18058_id = str(config[CONF_KP18058_ID]) kp18058_id = str(config[CONF_KP18058_ID])
channel = config[CONF_CHANNEL] channel = config[CONF_CHANNEL]