mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 17:27:59 +01:00
removed whitespace
This commit is contained in:
parent
d2708c9a02
commit
9f027103ed
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ bool MQTTSensorComponent::send_initial_state() {
|
|||
}
|
||||
}
|
||||
bool MQTTSensorComponent::publish_state(float value) {
|
||||
int8_t accuracy = this->sensor_->get_accuracy_decimals();
|
||||
int8_t accuracy = this->sensor_->get_accuracy_decimals();
|
||||
if(std::isnan(value))
|
||||
return this->publish(this->get_state_topic_(), "None");
|
||||
return this->publish(this->get_state_topic_(), value_accuracy_to_string(value, accuracy));
|
||||
|
|
Loading…
Reference in a new issue