diff --git a/esphome/components/ds248x/ds248x.cpp b/esphome/components/ds248x/ds248x.cpp index 1f56e24349..82a5514401 100644 --- a/esphome/components/ds248x/ds248x.cpp +++ b/esphome/components/ds248x/ds248x.cpp @@ -379,7 +379,7 @@ void DS248xComponent::reset_hub_() { uint8_t cmd = DS248X_COMMAND_RESET; this->write(&cmd, sizeof(cmd)); - if (this->enable_active_pullup_ == true) { + if (this->enable_active_pullup_) { this->DS248xComponent::write_config_(DS248X_CONFIG_ACTIVE_PULLUP); }