ESPHome  2024.11.1
fan_state.cpp
Go to the documentation of this file.
1 #include "fan_state.h"
2 
3 namespace esphome {
4 namespace fan {
5 
6 static const char *const TAG = "fan";
7 
8 void FanState::setup() {
9  auto restore = this->restore_state_();
10  if (restore)
11  restore->to_call(*this).perform();
12 }
13 float FanState::get_setup_priority() const { return setup_priority::DATA - 1.0f; }
14 
15 } // namespace fan
16 } // namespace esphome
void setup()
const float DATA
For components that import data from directly connected sensors like DHT.
Definition: component.cpp:19
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7