mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 09:18:00 +01:00
parent
6b59f55a50
commit
31c13e4c16
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ void FloatOutput::set_level(float state) {
|
|||
}
|
||||
#endif
|
||||
|
||||
if (!(state == 0.0f && this->zero_means_zero_)) // regardless of min_power_, 0.0 means off
|
||||
if (state != 0.0f || !this->zero_means_zero_) // regardless of min_power_, 0.0 means off
|
||||
state = (state * (this->max_power_ - this->min_power_)) + this->min_power_;
|
||||
|
||||
if (this->is_inverted())
|
||||
|
|
Loading…
Reference in a new issue