diff --git a/esphome/components/fan/fan.h b/esphome/components/fan/fan.h index 1ca7bfbeb3..6cae01999d 100644 --- a/esphome/components/fan/fan.h +++ b/esphome/components/fan/fan.h @@ -136,6 +136,7 @@ class Fan : public EntityBase { protected: friend FanCall; + friend struct FanRestoreState; virtual void control(const FanCall &call) = 0;