mirror of
https://github.com/esphome/esphome.git
synced 2025-10-28 21:53:48 +00:00
Nextion - Do not refresh sensors while updating (#6566)
This commit is contained in:
@@ -16,13 +16,13 @@ void NextionTextSensor::process_text(const std::string &variable_name, const std
|
||||
}
|
||||
|
||||
void NextionTextSensor::update() {
|
||||
if (!this->nextion_->is_setup())
|
||||
if (!this->nextion_->is_setup() || this->nextion_->is_updating())
|
||||
return;
|
||||
this->nextion_->add_to_get_queue(this);
|
||||
}
|
||||
|
||||
void NextionTextSensor::set_state(const std::string &state, bool publish, bool send_to_nextion) {
|
||||
if (!this->nextion_->is_setup())
|
||||
if (!this->nextion_->is_setup() || this->nextion_->is_updating())
|
||||
return;
|
||||
|
||||
if (send_to_nextion) {
|
||||
|
||||
Reference in New Issue
Block a user