mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 01:08:03 +01:00
revert changes
This commit is contained in:
parent
8c68ca1967
commit
c398007d85
2 changed files with 5 additions and 17 deletions
|
@ -1,2 +0,0 @@
|
||||||
DEPENDENCIES = ["network"]
|
|
||||||
CONF_STATUS_ID = "status_id"
|
|
|
@ -13,21 +13,11 @@ StatusBinarySensor = status_ns.class_(
|
||||||
"StatusBinarySensor", binary_sensor.BinarySensor, cg.Component
|
"StatusBinarySensor", binary_sensor.BinarySensor, cg.Component
|
||||||
)
|
)
|
||||||
|
|
||||||
CONFIG_SCHEMA = (
|
CONFIG_SCHEMA = binary_sensor.binary_sensor_schema(
|
||||||
binary_sensor.binary_sensor_schema(
|
StatusBinarySensor,
|
||||||
StatusBinarySensor,
|
device_class=DEVICE_CLASS_CONNECTIVITY,
|
||||||
device_class=DEVICE_CLASS_CONNECTIVITY,
|
entity_category=ENTITY_CATEGORY_DIAGNOSTIC,
|
||||||
entity_category=ENTITY_CATEGORY_DIAGNOSTIC,
|
).extend(cv.COMPONENT_SCHEMA)
|
||||||
)
|
|
||||||
.extend(cv.COMPONENT_SCHEMA)
|
|
||||||
.extend(
|
|
||||||
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