Fix pulse counter API typo (#36)

https://github.com/OttoWinter/esphomelib/issues/165
This commit is contained in:
Otto Winter 2018-10-04 18:59:26 +02:00 committed by GitHub
parent bbee8e3436
commit f330993bd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,9 +15,9 @@ Example Usage
App.make_pulse_counter_sensor("Stromverbrauch Wärmepumpe", 13);
// Unit conversion
auto strom_warme = App.make_pulse_counter_sensor("Stromverbrauch Wärmepumpe", 13);
strom_warme.mqtt->set_unit_of_measurement("kW");
strom_warme.mqtt->clear_filters();
strom_warme.mqtt->add_multiply_filter(0.06f); // convert from Wh pulse to kW
strom_warme.pcnt->set_unit_of_measurement("kW");
strom_warme.pcnt->clear_filters();
strom_warme.pcnt->add_multiply_filter(0.06f); // convert from Wh pulse to kW
.. cpp:namespace:: nullptr