Fix sensor force_update native API (#847)

Fixes https://github.com/esphome/issues/issues/842
This commit is contained in:
Otto Winter 2019-11-12 19:01:36 +01:00 committed by GitHub
parent 907c14aa98
commit 51233e1931
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -377,6 +377,7 @@ bool APIConnection::send_sensor_info(sensor::Sensor *sensor) {
msg.icon = sensor->get_icon(); msg.icon = sensor->get_icon();
msg.unit_of_measurement = sensor->get_unit_of_measurement(); msg.unit_of_measurement = sensor->get_unit_of_measurement();
msg.accuracy_decimals = sensor->get_accuracy_decimals(); msg.accuracy_decimals = sensor->get_accuracy_decimals();
msg.force_update = sensor->get_force_update();
return this->send_list_entities_sensor_response(msg); return this->send_list_entities_sensor_response(msg);
} }
#endif #endif