mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-06 21:09:53 +02:00
add-black (#1593)
* Add black Update pre commit Update pre commit add empty line * Format with black
This commit is contained in:
committed by
GitHub
parent
2b60b0f1fa
commit
69879920eb
@@ -4,17 +4,18 @@ from esphome.components import output
|
||||
from esphome.const import CONF_CHANNEL, CONF_ID
|
||||
from . import TLC59208FOutput, tlc59208f_ns
|
||||
|
||||
DEPENDENCIES = ['tlc59208f']
|
||||
DEPENDENCIES = ["tlc59208f"]
|
||||
|
||||
TLC59208FChannel = tlc59208f_ns.class_('TLC59208FChannel', output.FloatOutput)
|
||||
CONF_TLC59208F_ID = 'tlc59208f_id'
|
||||
TLC59208FChannel = tlc59208f_ns.class_("TLC59208FChannel", output.FloatOutput)
|
||||
CONF_TLC59208F_ID = "tlc59208f_id"
|
||||
|
||||
CONFIG_SCHEMA = output.FLOAT_OUTPUT_SCHEMA.extend({
|
||||
cv.Required(CONF_ID): cv.declare_id(TLC59208FChannel),
|
||||
cv.GenerateID(CONF_TLC59208F_ID): cv.use_id(TLC59208FOutput),
|
||||
|
||||
cv.Required(CONF_CHANNEL): cv.int_range(min=0, max=7),
|
||||
})
|
||||
CONFIG_SCHEMA = output.FLOAT_OUTPUT_SCHEMA.extend(
|
||||
{
|
||||
cv.Required(CONF_ID): cv.declare_id(TLC59208FChannel),
|
||||
cv.GenerateID(CONF_TLC59208F_ID): cv.use_id(TLC59208FOutput),
|
||||
cv.Required(CONF_CHANNEL): cv.int_range(min=0, max=7),
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
def to_code(config):
|
||||
|
||||
Reference in New Issue
Block a user