Update esphome/components/gp8211/output/gp8211_output.cpp

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
haudamekki 2024-10-31 08:09:55 +01:00 committed by GitHub
parent e11a694222
commit 1544bd01e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,7 +19,10 @@ void GP8211Output::write_state(float state) {
if (err != i2c::ERROR_OK) { if (err != i2c::ERROR_OK) {
ESP_LOGE(TAG, "Error writing to GP8211, code %d", err); ESP_LOGE(TAG, "Error writing to GP8211, code %d", err);
this->status_set_error();
return;
} }
this->status_clear_error();
} }
} // namespace gp8211 } // namespace gp8211