1
0
mirror of https://github.com/esphome/esphome.git synced 2025-02-15 17:38:15 +00:00

Update __init__.py

Check black
This commit is contained in:
Iron Man 2024-04-23 19:17:11 +02:00 committed by GitHub
parent a20be8851b
commit 808b87d624
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,9 @@ CONF_ACTIVE_PULLUP = "active_pullup"
CONF_STRONG_PULLUP = "strong_pullup"
ds248x_ns = cg.esphome_ns.namespace("ds248x")
DS248xComponent = ds248x_ns.class_("DS248xComponent", cg.PollingComponent, i2c.I2CDevice)
DS248xComponent = ds248x_ns.class_(
"DS248xComponent", cg.PollingComponent, i2c.I2CDevice
)
ds248xType = ds248x_ns.enum("DS248xType", is_class=True)
@ -34,7 +36,6 @@ CONFIG_SCHEMA = (
cv.Optional(CONF_HUB_SLEEP, default=False): cv.boolean,
cv.Optional(CONF_ACTIVE_PULLUP, default=False): cv.boolean,
cv.Optional(CONF_STRONG_PULLUP, default=False): cv.boolean,
}
)
.extend(cv.polling_component_schema("60s"))