remove bugfix

This commit is contained in:
J. Nick Koston
2025-10-31 11:42:32 -05:00
parent 9dcfbed8af
commit e6421ac50c
3 changed files with 3 additions and 12 deletions
@@ -51,11 +51,8 @@ void HBridgeFan::dump_config() {
void HBridgeFan::control(const fan::FanCall &call) {
if (call.get_state().has_value())
this->state = *call.get_state();
if (call.get_speed().has_value()) {
if (call.get_speed().has_value())
this->speed = *call.get_speed();
// Speed manually set, clear preset mode
this->clear_preset_mode_();
}
if (call.get_oscillating().has_value())
this->oscillating = *call.get_oscillating();
if (call.get_direction().has_value())
+1 -4
View File
@@ -23,11 +23,8 @@ void SpeedFan::dump_config() { LOG_FAN("", "Speed Fan", this); }
void SpeedFan::control(const fan::FanCall &call) {
if (call.get_state().has_value())
this->state = *call.get_state();
if (call.get_speed().has_value()) {
if (call.get_speed().has_value())
this->speed = *call.get_speed();
// Speed manually set, clear preset mode
this->clear_preset_mode_();
}
if (call.get_oscillating().has_value())
this->oscillating = *call.get_oscillating();
if (call.get_direction().has_value())
@@ -23,11 +23,8 @@ void TemplateFan::dump_config() { LOG_FAN("", "Template Fan", this); }
void TemplateFan::control(const fan::FanCall &call) {
if (call.get_state().has_value())
this->state = *call.get_state();
if (call.get_speed().has_value() && (this->speed_count_ > 0)) {
if (call.get_speed().has_value() && (this->speed_count_ > 0))
this->speed = *call.get_speed();
// Speed manually set, clear preset mode
this->clear_preset_mode_();
}
if (call.get_oscillating().has_value() && this->has_oscillating_)
this->oscillating = *call.get_oscillating();
if (call.get_direction().has_value() && this->has_direction_)