remove bugfix

This commit is contained in:
J. Nick Koston
2025-10-31 11:45:12 -05:00
parent e6421ac50c
commit d5938df531
3 changed files with 3 additions and 6 deletions
@@ -57,8 +57,7 @@ void HBridgeFan::control(const fan::FanCall &call) {
this->oscillating = *call.get_oscillating();
if (call.get_direction().has_value())
this->direction = *call.get_direction();
if (call.has_preset_mode())
this->set_preset_mode_(call.get_preset_mode());
this->set_preset_mode_(call.get_preset_mode());
this->write_state_();
this->publish_state();
+1 -2
View File
@@ -29,8 +29,7 @@ void SpeedFan::control(const fan::FanCall &call) {
this->oscillating = *call.get_oscillating();
if (call.get_direction().has_value())
this->direction = *call.get_direction();
if (call.has_preset_mode())
this->set_preset_mode_(call.get_preset_mode());
this->set_preset_mode_(call.get_preset_mode());
this->write_state_();
this->publish_state();
@@ -29,8 +29,7 @@ void TemplateFan::control(const fan::FanCall &call) {
this->oscillating = *call.get_oscillating();
if (call.get_direction().has_value() && this->has_direction_)
this->direction = *call.get_direction();
if (call.has_preset_mode())
this->set_preset_mode_(call.get_preset_mode());
this->set_preset_mode_(call.get_preset_mode());
this->publish_state();
}