mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 09:18:00 +01:00
[fix] Status sensor does not check if required network component is missing (#7734)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
d4d630823c
commit
e02f3cdac7
1 changed files with 2 additions and 0 deletions
|
@ -6,6 +6,8 @@ from esphome.const import (
|
||||||
ENTITY_CATEGORY_DIAGNOSTIC,
|
ENTITY_CATEGORY_DIAGNOSTIC,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
DEPENDENCIES = ["network"]
|
||||||
|
|
||||||
status_ns = cg.esphome_ns.namespace("status")
|
status_ns = cg.esphome_ns.namespace("status")
|
||||||
StatusBinarySensor = status_ns.class_(
|
StatusBinarySensor = status_ns.class_(
|
||||||
"StatusBinarySensor", binary_sensor.BinarySensor, cg.Component
|
"StatusBinarySensor", binary_sensor.BinarySensor, cg.Component
|
||||||
|
|
Loading…
Reference in a new issue