mirror of
https://github.com/esphome/esphome.git
synced 2024-11-21 22:48:10 +01:00
Fix binary sensor heartbeat not working (#130)
This commit is contained in:
parent
433b605bef
commit
cf264a2743
2 changed files with 2 additions and 1 deletions
|
@ -33,7 +33,7 @@ DelayedOffFilter = binary_sensor_ns.DelayedOffFilter
|
||||||
HeartbeatFilter = binary_sensor_ns.HeartbeatFilter
|
HeartbeatFilter = binary_sensor_ns.HeartbeatFilter
|
||||||
MQTTBinarySensorComponent = binary_sensor_ns.MQTTBinarySensorComponent
|
MQTTBinarySensorComponent = binary_sensor_ns.MQTTBinarySensorComponent
|
||||||
|
|
||||||
FILTER_KEYS = [CONF_INVERT, CONF_DELAYED_ON, CONF_DELAYED_OFF, CONF_LAMBDA]
|
FILTER_KEYS = [CONF_INVERT, CONF_DELAYED_ON, CONF_DELAYED_OFF, CONF_LAMBDA, CONF_HEARTBEAT]
|
||||||
|
|
||||||
FILTERS_SCHEMA = vol.All(cv.ensure_list, [vol.All({
|
FILTERS_SCHEMA = vol.All(cv.ensure_list, [vol.All({
|
||||||
vol.Optional(CONF_INVERT): None,
|
vol.Optional(CONF_INVERT): None,
|
||||||
|
|
|
@ -444,6 +444,7 @@ binary_sensor:
|
||||||
- invert:
|
- invert:
|
||||||
- delayed_on: 40ms
|
- delayed_on: 40ms
|
||||||
- delayed_off: 40ms
|
- delayed_off: 40ms
|
||||||
|
- heartbeat: 1s
|
||||||
on_press:
|
on_press:
|
||||||
then:
|
then:
|
||||||
- lambda: >-
|
- lambda: >-
|
||||||
|
|
Loading…
Reference in a new issue