mirror of
https://github.com/esphome/esphome.git
synced 2026-09-18 18:48:39 +00:00
remove bugfix
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user