mirror of
https://github.com/esphome/esphome.git
synced 2025-09-05 12:52:19 +01:00
Pulse_counter measure total pulses (#1173)
* Draft Pulse_count_total * Added check if Total sensor is present * fix lint errors * fix lint * Update esphome/components/pulse_counter/sensor.py Co-authored-by: Otto Winter <otto@otto-winter.com> Co-authored-by: Otto Winter <otto@otto-winter.com>
This commit is contained in:
@@ -525,6 +525,7 @@ CONF_TO = 'to'
|
||||
CONF_TOLERANCE = 'tolerance'
|
||||
CONF_TOPIC = 'topic'
|
||||
CONF_TOPIC_PREFIX = 'topic_prefix'
|
||||
CONF_TOTAL = "total"
|
||||
CONF_TRANSITION_LENGTH = 'transition_length'
|
||||
CONF_TRIGGER_ID = 'trigger_id'
|
||||
CONF_TRIGGER_PIN = 'trigger_pin'
|
||||
@@ -641,6 +642,7 @@ UNIT_OHM = 'Ω'
|
||||
UNIT_PARTS_PER_BILLION = 'ppb'
|
||||
UNIT_PARTS_PER_MILLION = 'ppm'
|
||||
UNIT_PERCENT = '%'
|
||||
UNIT_PULSES = "pulses"
|
||||
UNIT_PULSES_PER_MINUTE = 'pulses/min'
|
||||
UNIT_SECOND = 's'
|
||||
UNIT_STEPS = 'steps'
|
||||
|
Reference in New Issue
Block a user