mirror of
https://github.com/esphome/esphome.git
synced 2026-09-17 18:18:43 +00:00
[fan] Initialize Fan::restore_mode_ (#19118)
This commit is contained in:
@@ -183,7 +183,7 @@ class Fan : public EntityBase {
|
||||
|
||||
LazyCallbackManager<void()> state_callback_{};
|
||||
ESPPreferenceObject rtc_;
|
||||
FanRestoreMode restore_mode_;
|
||||
FanRestoreMode restore_mode_{FanRestoreMode::NO_RESTORE};
|
||||
|
||||
private:
|
||||
/// Lazy-allocate preset modes vector (never freed — entity lives forever).
|
||||
|
||||
Reference in New Issue
Block a user