[uptime] Use a user provided default constructor for UptimeSecondsSensor (#19140)

This commit is contained in:
J. Nick Koston
2026-09-16 20:32:58 +12:00
committed by GitHub
parent 14e640c903
commit ba50e23b81
@@ -7,6 +7,8 @@ namespace esphome::uptime {
class UptimeSecondsSensor final : public sensor::Sensor, public PollingComponent {
public:
// User provided, not "= default": `new(p) UptimeSecondsSensor()` would zero-fill .bss that is already zero.
UptimeSecondsSensor() {}
void update() override;
void dump_config() override;