1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-15 15:18:16 +00:00

Reverted warming up logic

This commit is contained in:
Nikolay Vasilchuk 2019-08-08 12:16:43 +03:00
parent cb99ee8db3
commit 0c0efe42d1

View File

@ -54,12 +54,6 @@ void MHZ19Component::update() {
const int temp = int(response[4]) - 40; const int temp = int(response[4]) - 40;
const uint8_t status = response[5]; const uint8_t status = response[5];
if (status <= 1) {
ESP_LOGW(TAG, "MHZ19 now warming up... Status=0x%02X", status);
this->status_set_warning();
return;
}
ESP_LOGD(TAG, "MHZ19 Received CO₂=%uppm Temperature=%d°C Status=0x%02X", ppm, temp, status); ESP_LOGD(TAG, "MHZ19 Received CO₂=%uppm Temperature=%d°C Status=0x%02X", ppm, temp, status);
if (this->co2_sensor_ != nullptr) if (this->co2_sensor_ != nullptr)
this->co2_sensor_->publish_state(ppm); this->co2_sensor_->publish_state(ppm);