1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-29 22:24:26 +00:00

Fix fan speed restore issue on boot (#1867)

This commit is contained in:
wifwucite
2021-09-08 05:30:17 +02:00
committed by GitHub
parent b0533db2eb
commit 1be106c0b5
5 changed files with 14 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ void FanState::setup() {
call.set_direction(recovered.direction);
call.perform();
}
float FanState::get_setup_priority() const { return setup_priority::HARDWARE - 1.0f; }
float FanState::get_setup_priority() const { return setup_priority::DATA - 1.0f; }
uint32_t FanState::hash_base() { return 418001110UL; }
void FanStateCall::perform() const {