mirror of
https://github.com/esphome/esphome.git
synced 2026-09-18 02:28:42 +00:00
[status] Use a user provided default constructor for StatusBinarySensor (#19138)
This commit is contained in:
@@ -7,6 +7,8 @@ namespace esphome::status {
|
||||
|
||||
class StatusBinarySensor final : public binary_sensor::BinarySensor, public PollingComponent {
|
||||
public:
|
||||
// User provided, not "= default": `new(p) StatusBinarySensor()` would zero-fill .bss that is already zero.
|
||||
StatusBinarySensor() {}
|
||||
void update() override;
|
||||
|
||||
void setup() override;
|
||||
|
||||
Reference in New Issue
Block a user