mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 12:37:45 +01:00
explicitly initialize state
This commit is contained in:
parent
dcd3b1fa30
commit
0f6c798c42
@ -58,7 +58,7 @@ class BinarySensor : public EntityBase, public EntityBase_DeviceClass {
|
||||
void publish_initial_state(bool state);
|
||||
|
||||
/// The current reported state of the binary sensor.
|
||||
bool state;
|
||||
bool state{false};
|
||||
|
||||
void add_filter(Filter *filter);
|
||||
void add_filters(const std::vector<Filter *> &filters);
|
||||
|
Loading…
Reference in New Issue
Block a user