diff --git a/esphome/components/waveshare_epaper/display.py b/esphome/components/waveshare_epaper/display.py index 15d3c28695..a92cd67220 100644 --- a/esphome/components/waveshare_epaper/display.py +++ b/esphome/components/waveshare_epaper/display.py @@ -27,11 +27,9 @@ WaveshareEPaperBWR = waveshare_epaper_ns.class_( WaveshareEPaperTypeA = waveshare_epaper_ns.class_( "WaveshareEPaperTypeA", WaveshareEPaper ) - WaveshareEpaper1P54INBV2 = waveshare_epaper_ns.class_( "WaveshareEPaper1P54InBV2", WaveshareEPaperBWR ) - WaveshareEPaper2P7In = waveshare_epaper_ns.class_( "WaveshareEPaper2P7In", WaveshareEPaper ) diff --git a/esphome/components/waveshare_epaper/waveshare_epaper.cpp b/esphome/components/waveshare_epaper/waveshare_epaper.cpp index 2a752ddbb4..7a66b058d2 100644 --- a/esphome/components/waveshare_epaper/waveshare_epaper.cpp +++ b/esphome/components/waveshare_epaper/waveshare_epaper.cpp @@ -154,8 +154,7 @@ bool WaveshareEPaperBase::wait_until_idle_() { } const uint32_t start = millis(); - - while (bool test = this->busy_pin_->digital_read()) { + while (this->busy_pin_->digital_read()) { if (millis() - start > this->idle_timeout_()) { ESP_LOGE(TAG, "Timeout while displaying image!"); return false;