mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Fix tuya fan speed send (#1978)
This commit is contained in:
		| @@ -80,7 +80,7 @@ void TuyaFan::write_state() { | |||||||
|   } |   } | ||||||
|   if (this->speed_id_.has_value()) { |   if (this->speed_id_.has_value()) { | ||||||
|     ESP_LOGV(TAG, "Setting speed: %d", this->fan_->speed); |     ESP_LOGV(TAG, "Setting speed: %d", this->fan_->speed); | ||||||
|     this->parent_->set_datapoint_value(*this->speed_id_, this->fan_->speed); |     this->parent_->set_datapoint_value(*this->speed_id_, this->fan_->speed - 1); | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user