Skip to content

Commit

Permalink
Fix optimized_defrosting when temperature_antifreeze is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
wrfz committed Nov 6, 2024
1 parent cc81417 commit 3b1a68b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/daikin_rotex_can/daikin_rotex_can.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,11 @@ bool DaikinRotexCanComponent::on_custom_select(std::string const& id, uint8_t va
if (value != 0) {
m_entity_manager.sendSet(p_temperature_antifreeze->get_name(), p_temperature_antifreeze->getKey(TEMPERATURE_ANTIFREEZE_OFF));
}
m_optimized_defrosting.save(value);
return true;
} else {
ESP_LOGE(TAG, "on_custom_select(%s, %d) => temperature_antifreeze select is missing!", id.c_str(), value);
}
m_optimized_defrosting.save(value);
return true;
}
return false;
}
Expand Down

0 comments on commit 3b1a68b

Please sign in to comment.