1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-19 08:15:49 +00:00
This commit is contained in:
J. Nick Koston
2025-10-30 23:12:26 -05:00
parent f3087abd55
commit 29c97686fa

View File

@@ -268,6 +268,10 @@ template<typename T> class DisplayWriter {
// Operator() for convenience // Operator() for convenience
void operator()(T &display) const { this->call(display); } 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: protected:
enum : uint8_t { enum : uint8_t {
NONE, NONE,