From 76ef8be109e404e8e95b3f5366d71fc1c100d9a4 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 7 Apr 2026 21:50:25 -1000 Subject: [PATCH] make the bot happy --- esphome/core/automation.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/esphome/core/automation.h b/esphome/core/automation.h index a574872bb2..eb270bfee2 100644 --- a/esphome/core/automation.h +++ b/esphome/core/automation.h @@ -40,6 +40,7 @@ template struct gens<0, S...> { using type = seq; }; template class TemplatableFn { public: TemplatableFn() = default; + TemplatableFn(std::nullptr_t) = delete; // Exact return type match — direct function pointer storage template TemplatableFn(F f) requires std::convertible_to : f_(f) {} @@ -102,6 +103,7 @@ using TemplatableStorage = template class TemplatableValue { public: TemplatableValue() = default; + TemplatableValue(std::nullptr_t) = delete; // Accept raw constants template TemplatableValue(V value) requires(!std::invocable) : tag_(VALUE) {