mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 09:18:00 +01:00
[fix] styling
This commit is contained in:
parent
31d3d16a68
commit
3083a88d4d
2 changed files with 15 additions and 13 deletions
|
@ -1,2 +1,2 @@
|
||||||
DEPENDENCIES = ["network"]
|
DEPENDENCIES = ["network"]
|
||||||
CONF_STATUS_ID = "status_id"
|
CONF_STATUS_ID = "status_id"
|
||||||
|
|
|
@ -12,19 +12,21 @@ StatusBinarySensor = status_ns.class_(
|
||||||
"StatusBinarySensor", binary_sensor.BinarySensor, cg.Component
|
"StatusBinarySensor", binary_sensor.BinarySensor, cg.Component
|
||||||
)
|
)
|
||||||
|
|
||||||
CONFIG_SCHEMA = binary_sensor.binary_sensor_schema(
|
CONFIG_SCHEMA = (
|
||||||
StatusBinarySensor,
|
binary_sensor.binary_sensor_schema(
|
||||||
device_class=DEVICE_CLASS_CONNECTIVITY,
|
StatusBinarySensor,
|
||||||
entity_category=ENTITY_CATEGORY_DIAGNOSTIC,
|
device_class=DEVICE_CLASS_CONNECTIVITY,
|
||||||
).extend(cv.COMPONENT_SCHEMA).extend(
|
entity_category=ENTITY_CATEGORY_DIAGNOSTIC,
|
||||||
cv.Schema(
|
)
|
||||||
{
|
.extend(cv.COMPONENT_SCHEMA)
|
||||||
cv.GenerateID(CONF_STATUS_ID): cv.All(
|
.extend(
|
||||||
cv.requires_component("network")
|
cv.Schema(
|
||||||
),
|
{
|
||||||
}
|
cv.GenerateID(CONF_STATUS_ID): cv.All(cv.requires_component("network")),
|
||||||
)
|
}
|
||||||
)
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
async def to_code(config):
|
async def to_code(config):
|
||||||
|
|
Loading…
Reference in a new issue