diff --git a/esphome/components/shtcx/shtcx.cpp b/esphome/components/shtcx/shtcx.cpp index 356453d66a..317d8a5a8a 100644 --- a/esphome/components/shtcx/shtcx.cpp +++ b/esphome/components/shtcx/shtcx.cpp @@ -147,7 +147,7 @@ void SHTCXComponent::soft_reset() { delayMicroseconds(200); } void SHTCXComponent::sleep() { - if (!this->write_command_(SHTCX_COMMAND_SLEEP)) { + this->write_command_(SHTCX_COMMAND_SLEEP) return; } }