From 29c97686fa10cd40eb462c4214d6677a87494df7 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 30 Oct 2025 23:12:26 -0500 Subject: [PATCH] wip --- esphome/components/display/display.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/esphome/components/display/display.h b/esphome/components/display/display.h index 2360f92fd4..2710b66190 100644 --- a/esphome/components/display/display.h +++ b/esphome/components/display/display.h @@ -268,6 +268,10 @@ template class DisplayWriter { // Operator() for convenience void operator()(T &display) const { this->call(display); } + // Operator* for backwards compatibility with (*writer_)(*this) pattern + DisplayWriter &operator*() { return *this; } + const DisplayWriter &operator*() const { return *this; } + protected: enum : uint8_t { NONE,