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