[binary_sensor] Use a user provided default constructor for DelayedOnFilter (#19205)

This commit is contained in:
J. Nick Koston
2026-09-16 18:10:43 +12:00
committed by GitHub
parent f686fb606b
commit 5198ef8dd8
@@ -53,6 +53,9 @@ class DelayedOnOffFilter final : public Filter {
class DelayedOnFilter : public Filter {
public:
// User provided, not "= default": `new(p) DelayedOnFilter()` would zero-fill .bss that is already zero.
DelayedOnFilter() {}
optional<bool> new_value(bool value) override;
template<typename T> void set_delay(T delay) { this->delay_ = delay; }