[st7735][st7789v][waveshare_epaper] Declare log tags with ESPHOME_LOG_TAG (#20295)

This commit is contained in:
J. Nick Koston
2026-10-09 15:51:55 -10:00
committed by GitHub
parent 8567e69d46
commit 640d677913
5 changed files with 4 additions and 10 deletions
+1 -1
View File
@@ -218,7 +218,7 @@ static constexpr uint8_t PROGMEM
100 }; // 100 ms delay
// clang-format on
static const char *const TAG = "st7735";
ESPHOME_LOG_TAG(TAG, "st7735");
ST7735::ST7735(ST7735Model model, int width, int height, int colstart, int rowstart, bool eightbitcolor, bool usebgr,
bool invert_colors)
+1 -1
View File
@@ -4,7 +4,7 @@
namespace esphome::st7789v {
static const char *const TAG = "st7789v";
ESPHOME_LOG_TAG(TAG, "st7789v");
#ifdef USE_ESP32
static constexpr size_t TEMP_BUFFER_SIZE = 1024;
#else
@@ -4,7 +4,7 @@
namespace esphome::waveshare_epaper {
static const char *const TAG = "waveshare_2.13v3";
ESPHOME_LOG_TAG(TAG, "waveshare_2.13v3");
static const uint8_t PARTIAL_LUT[] = {
0x32, // cmd
@@ -7,7 +7,7 @@
namespace esphome::waveshare_epaper {
static const char *const TAG = "waveshare_epaper";
ESPHOME_LOG_TAG(TAG, "waveshare_epaper");
static const uint8_t LUT_SIZE_WAVESHARE = 30;
-6
View File
@@ -1273,12 +1273,6 @@ def lint_no_std_nothrow(fname, match):
r"\s*(?:=\s*\{?|[{(])\s*\"",
prefilter="TAG",
include=["esphome/components/*.cpp", "esphome/components/**/*.cpp"],
# Deprecated components, converted in a follow-up PR
exclude=[
"esphome/components/st7735/*",
"esphome/components/st7789v/*",
"esphome/components/waveshare_epaper/*",
],
)
def lint_log_tag_macro(fname, match):
return (