ESPHome
2023.5.5
esphome
esphome
components
fan
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
setup
void setup()
esphome::setup_priority::DATA
const float DATA
For components that import data from directly connected sensors like DHT.
Definition:
component.cpp:18
fan_state.h
esphome
Definition:
a4988.cpp:4
Generated by
1.8.13