diff --git a/esphome/components/status/__init__.py b/esphome/components/status/__init__.py index 8fe6ac40b7..e69de29bb2 100644 --- a/esphome/components/status/__init__.py +++ b/esphome/components/status/__init__.py @@ -1,2 +0,0 @@ -DEPENDENCIES = ["network"] -CONF_STATUS_ID = "status_id" diff --git a/esphome/components/status/binary_sensor.py b/esphome/components/status/binary_sensor.py index d26c562e9c..adc342ed4d 100644 --- a/esphome/components/status/binary_sensor.py +++ b/esphome/components/status/binary_sensor.py @@ -13,21 +13,11 @@ StatusBinarySensor = status_ns.class_( "StatusBinarySensor", binary_sensor.BinarySensor, cg.Component ) -CONFIG_SCHEMA = ( - binary_sensor.binary_sensor_schema( - StatusBinarySensor, - device_class=DEVICE_CLASS_CONNECTIVITY, - entity_category=ENTITY_CATEGORY_DIAGNOSTIC, - ) - .extend(cv.COMPONENT_SCHEMA) - .extend( - cv.Schema( - { - cv.GenerateID(CONF_STATUS_ID): cv.All(cv.requires_component("network")), - } - ) - ) -) +CONFIG_SCHEMA = binary_sensor.binary_sensor_schema( + StatusBinarySensor, + device_class=DEVICE_CLASS_CONNECTIVITY, + entity_category=ENTITY_CATEGORY_DIAGNOSTIC, +).extend(cv.COMPONENT_SCHEMA) async def to_code(config):