mirror of
https://github.com/esphome/esphome.git
synced 2024-12-02 11:44:13 +01:00
2a84db7f85
Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl> Co-authored-by: rob-deutsch <robzyb+altgithub@gmail.com> Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
16 lines
350 B
C++
16 lines
350 B
C++
#include "fan_state.h"
|
|
|
|
namespace esphome {
|
|
namespace fan {
|
|
|
|
static const char *const TAG = "fan";
|
|
|
|
void FanState::setup() {
|
|
auto restore = this->restore_state_();
|
|
if (restore)
|
|
restore->to_call(*this).perform();
|
|
}
|
|
float FanState::get_setup_priority() const { return setup_priority::DATA - 1.0f; }
|
|
|
|
} // namespace fan
|
|
} // namespace esphome
|