mirror of
https://github.com/esphome/esphome.git
synced 2024-12-23 14:04:53 +01:00
Fix sensor force_update native API (#847)
Fixes https://github.com/esphome/issues/issues/842
This commit is contained in:
parent
7752794fc5
commit
226e3b1dad
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue