Update htu21d.cpp, fix publishing of heater level (#5520)

This commit is contained in:
Nippey 2023-10-12 19:56:30 +02:00 committed by GitHub
parent f4ce8b8b6c
commit 2910eb2ef7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,7 +76,7 @@ void HTU21DComponent::update() {
if (this->humidity_ != nullptr)
this->humidity_->publish_state(humidity);
if (this->heater_ != nullptr)
this->heater_->publish_state(humidity);
this->heater_->publish_state(heater_level);
this->status_clear_warning();
}