mirror of
https://github.com/esphome/esphome.git
synced 2024-11-24 12:06:26 +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