From 226e3b1dad8516e6a06b5d046d092c040f9fa178 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Tue, 12 Nov 2019 19:01:36 +0100 Subject: [PATCH] Fix sensor force_update native API (#847) Fixes https://github.com/esphome/issues/issues/842 --- esphome/components/api/api_connection.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/esphome/components/api/api_connection.cpp b/esphome/components/api/api_connection.cpp index d4c4a52054..a329e81cee 100644 --- a/esphome/components/api/api_connection.cpp +++ b/esphome/components/api/api_connection.cpp @@ -377,6 +377,7 @@ bool APIConnection::send_sensor_info(sensor::Sensor *sensor) { msg.icon = sensor->get_icon(); msg.unit_of_measurement = sensor->get_unit_of_measurement(); msg.accuracy_decimals = sensor->get_accuracy_decimals(); + msg.force_update = sensor->get_force_update(); return this->send_list_entities_sensor_response(msg); } #endif